38Backing Up and Restoring

The development team is relying on their Subversion repository to be a safe place to store all their hard work. Anyone who’s worked as a systems administrator will know that disks can go bad at any time and that servers can get hacked, dropped, magnetized, and even accidentally reinstalled at any time. It’s very important to have backups and to test those backups regularly.

The simplest way to create a backup is to use svnadmin dump to create a dump file. The dump file will contain the complete history of everything that happened to your repository—every file added, every file deleted, and every file changed. Subversion can replay this history to re-create the repository if anything bad happens to the original. Once ...

Get Pragmatic Guide to Subversion now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.