# How To Backup an SVN Server for Windows

Being relatively novice to SVN, I needed to backup a recent installation. I found a couple of great scripts that was described for Linux, however, will work for Windows with additional software that is described in this article.

Dump the repository to a file.

Or dump the repository to a compressed file. This requires gzip for Windows.

svnadmin dump d:\csvn\data\repositories\myrepository | gzip > reponame.svn_dump.gz

Or dump the repository to a compressed file. This requires 7-zip for Windows.

svnadmin dump C:\csvn\data\repositories\myrepository | "%ProgramFiles%\7-Zip\7z.exe" a -si backup.7z