[wplug] cygwin rsync

Arnaud lists at arnaudloos.com
Wed Jul 7 14:37:49 EDT 2010


*Hello all. I'm initiating an rsync connection under cygwin from a Windows
box in order to mirror some directories to a Linux workstation. The command
I'm issuing is:
rsync -rltDhvz --progress -e 'ssh -p 2211' --delete <local source> <remote
destination>

My problem is that in order to run my complete copy operation I need to run
the above command five times with different source and destination
directories. As it stands now I have to run the five commands separately and
authenticate 5 times. I'm looking to script this process but I need a way to
essentially establish the ssh connection, authenticate once, and then have
the script run all 5 rsync commands in sequence. Any advice on the best way
to achieve this goal. Remember that I'm working within the constraints of
cygwin. I'm thinking perhaps I can establish the tunnel beforehand in cygwin
but then how do I ensure that the rsync operations will utilize that tunnel?


Thanks.
Arnaud-
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.wplug.org/pipermail/wplug/attachments/20100707/74ba5bbb/attachment.html 


More information about the wplug mailing list