Re: rsync question

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Brian
Date:  
To: Main PLUG discussion list
CC: plug-discuss@lists.phxlinux.org
New-Topics: Re: rsync question -- thanks but ;)
Subject: Re: rsync question
That's rsync over ssh so you can use pub key auth. Or do it over tcp/873 and use $RSYNC_PASSWORD

Sent from my iPhone

> On Jan 27, 2014, at 5:13 PM, wrote:
>
> rsync question:
>
> I have a shell script similar to the following (but longer) that I use
> to copy/sync/backup selected directories and files from my main computer
> to a backup computer and also to copy/sync/backup those selected
> directories and files to my web-hosted space.
>
> This all works fine, except I have to enter the password for each segment.
> Is there some way that I could embed the password in this shell script so
> I do not have to manually type the password each time?
>
> echo "starting files copy/sync/backup"
>
> rsync -avH --delete --progress /home/joe/dir1/
> joe@192.168.0.64:/home/joe/dir1/
> rsync -avH --delete --progress /home/joe/dir2/
> joe@192.168.0.64:/home/joe/dir2/
> rsync -avH --delete --progress /home/joe/dir3/
> joe@192.168.0.64:/home/joe/dir3/
>
> rsync -avHp --progress /home/joe/dir1/ :www/dir1/
> rsync -avHp --progress /home/joe/dir2/ :www/dir2/
> rsync -avHp --progress /home/joe/dir3/ :www/dir3/
>
> echo "FINISHED"
>
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss

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