I want to take SVN dump of Apache Lucene’s repository. How to replicate the above repo to my local machine?
One option is to first create a local repository:
$ svnadmin create /path/to/your/repo
Once you've created the repository, initialize it for syncing:
$ svnsync init /path/to/your/repo /path/to/source/repo
Now that you're setup for syncing, sync to the new repository:
$ svnsync sync /path/to/source/repo
When you don't want to keep the whole repository because you only need a single subdirectory, but you still want the whole history in subversion, you can then create a repository containing only the relevant sections:
$ svnadmin dump /path/to/your/repo | svndumpfilter include /path/to/correct/tree \
> /path/to/filtered/repository/backup
We now have a backup that has been filtered to include only the relevant tree. So, now let's restore that to a new, usable repository:
$ svnadmin load --ignore-uuid /path/to/treeonly/repository \
< /path/to/filtered/repository/backup
See the help on svnsync, on repository replication, and repository filtering.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With