On Wed, 2002-09-18 at 20:33, Richard Ibbotson wrote: > When I do.. > > rsync -avz 192.168.1.109:/home/user /home/user > > from my Debian box everything copies over fine. Works just great. > But, there's a slight pause while I'm asked for the password to the > SuSE box. Might be something to do with internal DNS - how long is the pause? > Is it possible to write a script that will do a backup at about 19.00 > at night and put the password into the SuSE box from the Debian box > so that the whole thing takes place whilst I'm working on something > else ? Might need to use SSH for some of this ? Yep. Use '-e ssh' in addition to what you have, and set up ssh keys. You will need ssh-keygen, and need to read the ssh man page (look for the section on authorized_keys). This will allow you to setup a secure connection without the need for a password. There are also a number of FAQs out there on the net. You can then write /etc/cron.daily/backup-job (or something), containing just: #!/bin/sh su -c <username> rsync -avz -e ssh <src> <dst> .. or something similar. You'll need to setup the keys in the correct order: you generate the keys on the machine you want to connect from, and put them on the machine you want to connect to. Other way around won't work :o) Cheers, Alex.
Attachment:
signature.asc
Description: This is a digitally signed message part