• Create a blank repository on the destination server
    mkdir /var/svn/my_project
    svnadmin create /var/svn/my_project
  • Create (and make executable) the svn pre-revprop-change hook. You can do whatever you would like with this script, but that will not be covered here.
    echo '#!/bin/sh' > /var/svn/my_project/hooks/pre-revprop-change
    chmod +x /var/svn/my_project/hooks/pre-revprop-change
  • Initialize the source and destination repositories in svnsync (you can reverse them to push the repo).
    svnsync init file:///var/svn/my_project/ https://$url_of_repo
  • Perform the sync. This is the only command you will need to run in order to sync again.
    svnsync sync file:///var/svn/my_project