How 'rsync' two in a script with one password?

keith smith klsmith2020 at yahoo.com
Fri Jul 16 19:01:40 MST 2010


Hi Joe,

Ran into this today http://troy.jdmz.net/rsync/index.html

------------------------

Keith Smith

--- On Fri, 7/16/10, joe at actionline.com <joe at actionline.com> wrote:

From: joe at actionline.com <joe at actionline.com>
Subject: How 'rsync' two in a script with one password?
To: plug-discuss at lists.plug.phoenix.az.us
Date: Friday, July 16, 2010, 8:28 AM


How can I use two (or more) 'rsync' commands in a single script without
having to enter the password separately for each one?

Below is a shortened example of a shell script that I use to update files
from my local computer to my web host. It works fine, except I have to
enter the password separately for each of the 'rsync' commands.

How can I modify this so I only have to enter the password once (or
perhaps embed the password for each one within the script)?

# update.blue

rsync -avHp --progress /home/joe/mydata/upquick/
vsiq at box5.bluehost.com:www/upquick/

rsync -avHp --progress /home/joe/mydata/zip/ vsiq at box5.bluehost.com:www/zip/

rsync -avHp --progress /home/joe/mydata/av7/ vsiq at box5.bluehost.com:www/av7/



---------------------------------------------------
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/20100716/971cc437/attachment.html>


More information about the PLUG-discuss mailing list