So let’s say you already have working SVN repo and want to setup svnsync to have backup on another server. Here are the steps I did to make it working:

    1. Dump existing repo:
    2. Transfer it to backup server (extract if you used gzip in previous step):
    3. Load the dump into repo:
    4. Create hooks/pre-revprop-change:

      Paste into file:

      Make file executable:
    5. Get repository UUID:

      You will get something like:

      Copy UUID and paste into next command:
    6. Now init the mirror repo:
    7. And finally sync it:
    8. Now you can setup cronjob to keep it syncing automatically e.g. every 5min. Use my script wrapper to avoid running two syncs at same time

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Post Navigation