|
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.)
|