Automatic backups with Subversion

Just thought I would quickly share a pretty powerful way of backing up subversion repositories.

Basically, it involves a Windows batch file:

set vcReposRoot={svn repository root}
set vcDumpRoot={location of backup directory}
cd /d %vcReposRoot% for /d %%a in (*) do (   svnadmin dump %vcReposRoot%\%%a > %vcDumpRoot%\%%a.dmp )

The script loops through all our repositories and does an svnadmin dump command for each of them, which writes a recoverable dump file to a network drive. We then schedule the batch file to run nightly.

© 2019 Associative Trails Ltd. 4m@