Mirror SVN server (and replace master server)
1. Install Mirror SVN server
2. Allow svnsync command permission
- echo '#!/bin/sh' > /svn/repos/repos1/hooks/pre-revprop-change
- chmod +x /svn/repos/repos1/hooks/pre-revprop-change
3. Initial svnsync configure
- svnsync init svn://mirror/repos1/ svn://original/repos1/
4. Start sync svn data
- svnsync --non-interactive sync svn://mirror
5. Setup schedule to resync svn
- crontab -e
*/30 * * * * svnsync --non-interactive sync svn://mirror > /dev/null
- /etc/init.d/cron reload
In case you need mirror replace the master
- svnadmin setuuid /svn/repos/repos1/ uuid
replace
ไม่มีความคิดเห็น:
แสดงความคิดเห็น