How to do two or more rsyncs with one password?

Kevin Fries kfries6 at gmail.com
Sun Aug 15 13:27:45 MST 2010


My preference is to NEVER rsync across an un secured channel.  Rsync is
easily tunneled inside ssh, and ssh can use rsa encryption keys for
authentication.   Solving both problems with one solution.

HTH
Kevin

On Aug 15, 2010 2:23 PM, <joe at actionline.com> wrote:


How can one do two or more rsyncs with entering the password just once?

I've set up a script that I named copy2blue to copy three specified
subdirectories to my web hosted space, and it works fine, except it
asks me to enter the password for each 'rsync' command.

How can I modify this so it will only ask for the password once?

cd /dir/subdir1
rsync -avHp --progress subdir1 webhost at box000.bluehost.com:www/subdir1/

cd /dir/subdir2
rsync -avHp --progress subdir2 webhost at box000.bluehost.com:www/subdir2/

cd /dir/subdir3
rsync -avHp --progress subdir3 webhost at box000.bluehost.com:www/subdir3/



---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20100815/25629f58/attachment.html>


More information about the PLUG-discuss mailing list