Helle everyone, Let's say we have 3 servers, 2 of them have the latest (stable) version of rsyncd running (2.6.9) <Server1> ==> I N T E R N E T ==> <Server2 (rsyncd running)> ==> LAN ==> <Server3 (rsyncd running)> Suppose I want to send a big file (bigfile.big) from Server1 to both Server2 and Server3. It would be a good idea to send first from Server1 -> Server2 and then from Server2 -> Server3 to avoid sending the same files over the internet (Server2 & 3 are in a Lan and Server 3 is a replicate of server 2). Is there a way to send first to Server2 from Server1 and after the rsync is finished to start syncing from Server2 to Server3 extacly the same files with the same options ? I tried the post-xfer exec and pre-xfer exec options in the rsyncd.conf file but there is no way to get the original sync folder (/home/./bigfile.big in the following example). Example: Server1: rsync -avzR /home/./bigfile.big Server2::home --progress --delete .... Syncing ...... Sync done, start internal (lan) sync: Server2: rsync -avzR /home/./bigfile.big Server3::home --progress --delete Thanks for your time -- Charalampos Pournaris charpour@gnet.gr
At 14:46 27.11.2007 +0200, Pournaris Charalampos wrote:>Is there a way to send first to Server2 from Server1 and after the rsync is finished to start syncing from Server2 to Server3 extacly the same files with the same options ? > >I tried the post-xfer exec and pre-xfer exec options in the rsyncd.conf file but there is no way to get the original sync folder (/home/./bigfile.big in the following example). > >Example: > >Server1: rsync -avzR /home/./bigfile.big Server2::home --progress --delete >.... Syncing ...... >Sync done, start internal (lan) sync: Server2: rsync -avzR /home/./bigfile.big Server3::home --progress --deleteJust thinking, I haven't tried this. You can specify the binary that is called on the remote side if you go with SSH. Like that you could create a script file that syncs from 2 to 3 and call that from 1 after you have finished synching from 1 to 2. The script itself sits and runs on 2. If 3 is a mirror of 2 you don't need exactly the same options as you used for synching from 1 to 2, just create an exact copy (-a --delete etc). bye Fabi
Apparently Analagous Threads
- Force parent directories creation
- 2 GB Limit when writing to smbfs filesystems
- ZFS+NFS+refquota: full filesystems still return EDQUOT for unlink()
- can't find the error in if function... maybe i'm blind?
- --delete --force Won't Remove Directories With Dotnames