|
One way to do this is by periodically invoking svnsync from your
crontab:
0 2 * * * * svnsync --non-interactive sync file://$HOME/mymirror
But it is also possible to trigger immediate synchronization whenever a
commit is made. On the master repository, append the following to your
myrepo/hooks/post-commit file:
svnsync --non-interactive sync mirror-url &
Substitute mirror-url for the URL of the mirror repository,
such as https://svnmirror.domain.ext/mymirror.
To propagate other operations such as the edition of log messages, append
the following to myrepo/hooks/post-revprop-change as well:
svnsync --non-interactive copy-revprops mirror-url ${REV} &
|