SVN warehouses are typically a real-time backup warehouse that configures Svnsync. The repository is copied from one version of the main library, but if the main library already has hundreds of thousands of versions, it is not possible to expect a new backup warehouse with a simple svnsync init, and then start sync from version 0.
To quickly rebuild a backup, you can use the following methods to process
1. First the main library hotcopy a
Svnadmin hotcopy Reponame Reponame-bak
2. Sync Backup to Standby
Rsync-avz Reponame-bak Username@bakserver:/svnroot-path
3. In the standby machine to increase the database SVN permissions
4. Set synchronization properties on a standby
#设置主库的uuid
SVN PS Svn:sync-from-uuid The main library's UUID--revprop-r 0 http://bakserver/repo/reponame
#设置主库的url
SVN PS svn:sync-from-url http://masterserver/repo/reponame--revprop-r 0 http://bakserver/repo/reponame
#设置热备的最新版
Lastver= ' Svnlook youngest Reponame-bak '
SVN PS Svn:sync-last-merged-rev $lastver--revprop-r 0 http://bakserver/repo/reponame
5. The newly submitted version after synchronizing Hotcopy
Svnsync Sync Http://bakserver/repo/reponame