Quote:
Originally Posted by Valery Reznic
If during rsync svn will write to repository - i expect nothing good  (
There is another solution - program svnsync (part of the svn package)
It able forward each commit to the mirror svn server when commit is done.
|
i havn't tried svnsync... may be it works better... but i am using rsync for last 1.5 years and didn't face any problem...
there is nothing to do on backup server.
rsync is installed by default on a RHL server. you just need to schedule it in crontab of primary server to run on different times. i have scheduled it to run after each 3 hours.
00 09 * * * /usr/bin/rsync -arv -e ssh /usr/local/svn-repo root@192.168.0.200:/usr/local
00 12 * * * /usr/bin/rsync -arv -e ssh /usr/local/svn-repo root@192.168.0.200:/usr/local
00 15 * * * /usr/bin/rsync -arv -e ssh /usr/local/svn-repo root@192.168.0.200:/usr/local
00 18 * * * /usr/bin/rsync -arv -e ssh /usr/local/svn-repo root@192.168.0.200:/usr/local
00 21 * * * /usr/bin/rsync -arv -e ssh /usr/local/svn-repo root@192.168.0.200:/usr/local
rsync copies the modified files from source to destination folder. b/w root (or any other users that u use) should be able to login on other server without password...(trusted host)
Cheers!!!
Champ