How to do two or more rsyncs with one password?

Forside
Vedhæftede filer:
Indlæg som e-mail
+ (text/plain)
Slet denne besked
Besvar denne besked
Skribent: joe@actionline.com
Dato:  
Til: plug-discuss
Emne: How to do two or more rsyncs with one password?

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 :www/subdir1/

cd /dir/subdir2
rsync -avHp --progress subdir2 :www/subdir2/

cd /dir/subdir3
rsync -avHp --progress subdir3 :www/subdir3/



---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss