Register
It is currently Wed Oct 01, 2014 2:11 am

Rsync Multi-Hop Script


All times are UTC - 6 hours


Post new topic Reply to topic  [ 1 post ] 
Author Message
 PostPosted: Thu Jun 24, 2010 7:41 am   

Joined: Wed Jun 23, 2010 4:20 pm
Posts: 1
Hi all,

Newbie here in need of an rsync script. It's a fairly tall order, least for my skill level which is why I'm here.

I'd like the script to rsync a directory on SRC to HOP1, from HOP1 to HOP2, and finally HOP2 to destServer. The connection to destServer is dependent on connecting through Hop1, Hop2.

The script would be run on the command line as follows:

> awesomeRsync.sh [rsync opts] --Hops host1 host2 src_dir destHost:~/dest_dir

Internally,awesomeRsync.sh would sync src_dir to host1:~/dest_dir, drop host1 from the --Hops argument list, then execute 'rsyncFancy.sh [rsync_opts] --Hops host2 dest_dir destHost:~/dest_dir' on host1 (etc).

I think it should be possible to make a single script that would reside on SRC, HOP1, HOP2{3,4...} that would do the job (ie, HOPs can be added simply by copying the script to new machines.)


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP