Mike Jackson

How to back up Subversion

rsync can be used to make a backup of Subversion's root directory, so that the whole of the repository and its history is backed up. This can be done as follows:

$ rsync -av tpls-svn-root

Running rsync again at a later date will back up any files that changed since the last time rsync was run.

To check that the the back-up worked, check out the current version using the backed-up root directory. For example:

$ svn checkout file:///home/user/tpls-svn-root/code tpls-svn
$ cd tpls-svn
$ svn info

Further information: