Backups and Mirrors

Backing up and/or mirroring your Subversion repositories.

Backing up your repository

  • Shut down svnserve, Apache, and anything else that might be accessing the repository:
    svc -d /service/apache
  • Dump a backup of the repository:
    • Uncompressed:
      svnadmin dump /var/svn/repo_name > dumpfile.txt
    • Compressed:
      svnadmin dump /var/svn/repo_name | gzip -9 > dumpfile.gz
    • Compressed, with a datestamp:
      svnadmin dump /var/svn/repo_name | gzip -9 > `date "+dumpfile_%Y-%m-%d_%H:%M:%S.gz"`
  • Load a database dump:
    • Uncompressed:
      svnadmin load /var/svn/repo_name < dumpfile.txt
    • Compress:
      gunzip -c dumpfile.gz | svnadmin load /var/svn/repo_name

Mirroring a Repository
How to Mirror a Subversion Repository

svnadmin hotcopy path_to_repos path_to_mirror

Resources

Recent Updates

  • 6 months 3 weeks ago
    1.27.2 update
  • 7 months 5 days ago
    Drupal 10/11 config
  • 7 months 6 days ago
  • PHP
    7 months 6 days ago
    PHP 8.3.11 and AlmaLinux
  • 7 months 1 week ago
    New version of Pound