rsync question -- thanks but ;)

Brian bhourigan at gmail.com
Tue Jan 28 09:59:48 MST 2014


No problem - with ssh it's easy enough there is a lot of documentation out
there
to help. I think this one is pretty straight forward:

https://www.digitalocean.com/community/articles/how-to-set-up-ssh-keys--2

Use an empty passphrase for unattended logins. If you have any trouble just
let me know and include the output of commands where you're stuck. (such as
ssh -v website at box123.bluehost.com)



On Tue, Jan 28, 2014 at 9:34 AM, <joe at actionline.com> wrote:

> Thanks Brian ...
>
> but I don't know how to do either of those things ???
>
>
> ---------
> > That's rsync over ssh so you can use pub key auth.
> > Or do it over tcp/873 and use $RSYNC_PASSWORD
>
> ---------
> >> On Jan 27, 2014 joe 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 at 192.168.0.64:/home/joe/dir1/
> >> rsync -avH --delete --progress /home/joe/dir2/
> >> joe at 192.168.0.64:/home/joe/dir2/
> >> rsync -avH --delete --progress /home/joe/dir3/
> >> joe at 192.168.0.64:/home/joe/dir3/
> >>
> >> rsync -avHp --progress /home/joe/dir1/
> >> website at box123.bluehost.com:www/dir1/
> >> rsync -avHp --progress /home/joe/dir2/
> >> website at box123.bluehost.com:www/dir2/
> >> rsync -avHp --progress /home/joe/dir3/
> >> website at box123.bluehost.com:www/dir3/
> >>
> >> echo "FINISHED"
>
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>



-- 
- Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20140128/40a5e362/attachment.html>


More information about the PLUG-discuss mailing list