If the repository is contained in a folder, is it sufficient to take the backup of this folder instead of typing the commands to create a dump?
If the repository is contained in a folder, is it sufficient to take the backup of this folder instead of typing the commands to create a dump?
This is described in great detail in the Subversion Book:
You can have a look at this page.
If you only want to backup a checkout you can archive it like a normal folder, the svn configs are stored in the
.svn
folders located in every folders of your repository.(The question should be moved on superuser)
No, you cannot backup a repository folder without locking the repository. See this chapter of the SVN book for more information regarding backups.
A dump is one way to do a backup. You could also make a hotcopy:
Or you can use
svnsync
to constantly keep around an up-to-date copy of your repository. If you don't have a powerful SVN server, this also has the advantage that it prevents bringing the server down to its knees for backups.If you are sure that no user will commit anything while you are copying the repository folder, then it's safe.
Otherwise, using the hotcopy or dump command is recommended.