Reputation:
I want to keep a particular folder with all revisions before deleting the current repository from my system for security reasons (means i don't want other informations of the repository, but a particular folder).. So i am thinking of creating a new repository and to get copied the particular folder's content into it.. Can it be possible?
Upvotes: 4
Views: 611
Reputation: 52699
Yup. You need svnadmin dump
your repository, run it through svndumpfilter
to keep the folder you want and then svnadmin load
it into the new repository.
Examples are in those links, especially the svndumpfilter one. Hint: to make it all go faster, combine the 3 utilities in a single command, don't dump to a file, filter the file then load the file - pipe the output of each to the next.
Upvotes: 6
Reputation: 39606
You should be able to do this with svnadmin dump and svndumpfilter: http://svnbook.red-bean.com/en/1.7/svn.reposadmin.maint.html#svn.reposadmin.maint.filtering
Upvotes: 4