Deprecated: Assigning the return value of new by reference is deprecated in /f2/blendedtechnologies/public/wp-content/plugins/pmetrics.php on line 1192
Blended Technologies » Blog Archive » Daily backup of Subversion

Daily backup of Subversion

In case anyone needs to make a windows batch file to automate Subversion backups, here is mine.
The windows task scheduler runs this batch file once a day to make a daily backup of my Subversion repository. You’d have to change the filepaths and such to use it, but maybe it’s useful.

DailyBackup.bat

::Reset final backup storage:
rmdir /S /Q \\vaio\svn_backup\daily\v5
mkdir \\vaio\svn_backup\daily\v5
::Reset Temp backup storage
rmdir /S /Q C:\SVNBACKUP
mkdir C:\SVNBACKUP
::Initiate SVN backup. Use svadmin hotcopy --help for details
svnadmin hotcopy C:\ARMS\ C:\SVNBACKUP --clean-logs
::Copy temp backup storage to final backup storage
xcopy C:\SVNBACKUP \\vaio\svn_backup\daily\v5 /E /I /Q /H /R /Y

del.icio.us |  Digg |  FURL |  Yahoo! My Web 2.0 |  Reddit

One Response to “Daily backup of Subversion”

  1. just in ram » Subversion server + windows + backup Says:

    […] http://www.blendedtechnologies.com/daily-backup-of-subversion/21http://www.blendedtechnologies.com/daily-backup-of-subversion/21 […]