Menu

Batch Files Really Are Your Friends … Svn Backups

June 22, 2013 - .NET / C#, Continuous Integration, Geek Bits, Web Stuff

Just finished a long coding session … ???

BACK IT UP!

set SvnAdminPath=C:Program Files (x86)VisualSVN Serverbinsvnadmin.exe

“%SvnAdminPath%” dump –deltas P:Repositories<repo_name> | “<path>gzip.exe” > <backup_path>SourceSvn.dump

echo Copying dump to h:backup
xcopy /Y <backup_path>SourceSvn.dump H:Backups

echo Copy dump to o:backup
xcopy /Y <backup_path>SourceSvn.dump O:Backup

PAUSE

🙂

Share

Leave a Reply

Your email address will not be published. Required fields are marked *

*