Backup subversion repository (and restore)

Here we explain how to backup your Subversion repository on a Linux Subversion server:

Backup Subversion repository

$ svnadmin dump path_to_repository | gzip > svn_repo_backup.gz

Restore Subversion repository

$ gunzip -c svn_repo_backup.gz | svnadmin load path_to_repository