REM Backup the Subversion repositories.
REM 'repo' is the working copy parent path.
REM 'backup' is the path to the backup folder.
REM 'old' is a backup of the last backup in case the script fails.
REM 'hotcopy' needs empty directories to copy into.
RMDIR /s /q %old%
REN %backup% Old
svnadmin hotcopy %repo% %backup% --clean-logs