# 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.

`svnadmin dump d:\csvn\data\repositories\myrepository > reponame.svn_dump `

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%-Zipz.exe" a -si backup.7z`

`svnadmin hotcopy /repos \backupserver\svncopy`
`gzip -d reponame.svn_dump.gz `
`svnadmin load d:\csvn\data\repositories\myrepository > reponame.svn_dump `