LCOD – 3.28.05 SVN commands/howtos


SVN is a version control management software
Subversion’s home page can be found here
http://subversion.tigris.org/

Lots of the links below go to the svnbook, the entire thing can be found here
http://svnbook.red-bean.com/

Sometimes you may checkout from one location and want to checkin to another location, use svn switch command detailed here
http://svnbook.red-bean.com/en/1.0/re27.html

Sometimes your SVN repository can be messed up, usually from somethign like running out of disk/memory and there will be lock files that prevent anyone from effectively using the repository. The best way to deal with this is shutdown apache (assuming you use apache to access your repo, shutdown anything else you have that accesses your repo) and running svnadmin recover /path/to/repository
more info here
http://svnbook.red-bean.com/en/1.0/ch05s03.html#svn-ch-5-sect-3.4

Backing up SVN is relatively simple, use the svnadmin dump command
For example
svnadmin dump /svn/sourcecode | gzip -c > /bkup/svn/sourcecode.gz

To restore SVN is pretty easy as well
svnadmin create /svn/newsourcecode
gunzip -c /bkup/svn/sourcecode.gz | svnadmin load /svn/newsourcecode

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

, , ,

Easy AdSense by Unreal