svn

svn

Moving repositories/ Creating backups in SVN

Recently, I needed to move some projects around in my SVN and it turned out to be very easy, although it took a bit of googling. This also gives you a way to take file backups of your repositories. Basically, what I needed to do was move one repository into a subfolder inside another repository. To do this, you just need two commands and you also need to do this on the SVN server. You can’t do it from an SVN client. Here are the two commands: svnadmin dump /path/to/repository > filename.dmp svnadmin load –-parent-dir path/to/subfolder repository-name < filename.dmp So basically, the...

Format of SVN access file for Path Based Authorization

Fine grained permissions on SVN repositories can be provided by creating an access file. Following is a sample access file explaining the basic format of the file. More details can be found by reading the SVN book. #groups are defined here. simply list the names of members of the group delimited by comma [groups] admin = rudy, batman, admin # to create access control for a repo, start with the directory that you are # defining the permissions for # to define permissions for all directories within a repo, use / # for example, to define permissions for all directories in the...

Create SVN repositories using a standard folder structure

This is shell script that you can use to create all of your repositories using the same standard folder structure. You need to replace the following variables for it to run: Replace [name] with the correct username of a user who will have permissions on the repository. Replace [password] with the correct password of the user Replace yourdomain.com with the path to where your svn repositories are stored call the script: ./scriptname reponame and it will create a new repository with the name reponame. Here’s what the...