Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN server backup

I am not able to take svn server backup on Windows 8. I've already tried many commands which was given at StackOverflow but non of them worked so far. Can any one help me with this?

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

I use the following command in svn command prompt:

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

I'm getting the following error

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

by giving the above command i observed repo.back file was created in e drive with 0kb

And more over pls tell me in which mode of the command prompt I should use this commands

like image 216
shashi Avatar asked Mar 26 '26 20:03

shashi


1 Answers

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

E:\Repositories\ is the root location of your repositories, not a repository. svnadmin hotcopy command makes a backup of a single repository, so you have to run the command like this svnadmin hotcopy E:\Repositories\<reponame> E:\RepoBackup\<backupname>.

There are various ways to backup Subversion repos, make sure to choose the one which fits your requirements best. I advise you to read my other answer on the this topic at ServerFault.

PS I guess that this question is offtopic on StackOverflow and has to be asked on ServerFault.

like image 101
bahrep Avatar answered Mar 29 '26 06:03

bahrep



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!