Backing up an SVN server

I cannot backup the svn server on Windows 8. I have already tried many commands that were provided on StackOverflow but have not worked so far. Can anyone help me with this?

My working copy is at C:\working\sample

, and the repository path is E:\Repositories

.

I am using the following command on the svn command line:

svnadmin hotcopy E:\Repositories E:\repo.back

I am getting the following error

svnadmin: E720002: Can't open file 'E:\repositories\format': The system cannot f
ind the file specified.

      

after giving the above command i noticed that the repo.back file was created in e-disk with 0kb

And tell me in more detail which command line mode should I use these commands

+3


source to share


2 answers


My working copy is in C: \ work \ sample and in the repository the path is E: \ Repositories.

E:\Repositories\

is the root location of your repositories, not the repository. svnadmin hotcopy

the command backs up one repository, so you need to run the command as svnadmin hotcopy E:\Repositories\<reponame> E:\RepoBackup\<backupname>

.



There are various ways to back up Subversion repositories , be sure to choose the one that best suits your needs. I advise you to read my other answer in this section on ServerFault .

PS I'm guessing this is an offtopic question on StackOverflow and should be asked on ServerFault.

+3


source


The easiest way to back up your entire svn repository system is to stop whatever server you expose to clients and then back up the root directory containing the repositories. Once you're done, return the server.

svnadmin hotcopy allows you to make backups of a running repo, that is, while clients are accessing it.



svnsync will continually back up the repo in a step-by-step manner and is the one I recommend, but if you want a quick snapshot to protect the repo (when updating or installing new stuff) then stop-copy is just as good.

0


source







All Articles