Sometimes it’s necessary to make a copy of a project stored in an SVN repository. If you just copy the directory manually, you will also be copying those sneaky .svn files that exist in every directory in the project. Instead you should use the svn export command. This will make a new copy of all of the files in the respository than you can zip up and send off to whomever you please.
svn export file:///path/to/your/repository my_export
If you want to zip this baby up:
zip -r my_export.zip my_export
If you wanted to get really creative, and tag this export as a release, you could something like this:
svn copy file:///path/to/repos/trunk file:///path/to/repos/tags/1.0release -m "tagging version 1.0 release" svn export file:///path/to/repos/tags/1.0release 1.0release # for a zip: zip -r 1.0release.zip 1.0release/ # for a tgz tar -czvf 1.0release.tgz 1.0release.zip/*
References:
- http://svnbook.red-bean.com/en/1.1/re10.html




Thanks for this post, Im using to automate the release of ccTiddly ……
http://www.tiddlywiki.org/wiki/CcTiddly
Thanks again.
Simon
By Simon McManus on May 29, 2008