Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it safe to just copy a SVN repository to an external HDD?

Right now, my SVN repository is on my laptop's HDD (although I use a code hosting service for more "critical" personal projects) and I just copy the directory over on a weekly basis (which will eventually be scripted or perhaps I'll make an app for the hell of it). Am I at risk for corrupting my SVN repository? So far, I haven't had any problems with the original or the copy, but that doesn't mean that I'm not at risk in the future.

like image 411
Thomas Owens Avatar asked Oct 09 '08 17:10

Thomas Owens


People also ask

What does svn copy do?

svn copy (cp) — Copy a file or directory in a working copy or in the repository.

How do I copy a folder from one directory to another in svn?

The easiest way to copy files and folders from within a working copy is to use the right drag menu. When you right drag a file or folder from one working copy to another, or even within the same folder, a context menu appears when you release the mouse.


1 Answers

Consider using hot copy:

svnadmin hotcopy — Make a hot copy of a repository...

This subcommand makes a full “hot” backup of your repository, including all hooks, configuration files, and, of course, database files. If you pass the --clean-logs switch, svnadmin will perform a hotcopy of your repository, and then remove unused Berkeley DB logs from the original repository. You can run this command at any time and make a safe copy of the repository, regardless of whether other processes are using the repository...

like image 119
Benjamin W. Smith Avatar answered Oct 20 '22 21:10

Benjamin W. Smith