Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN dump of Apache Lucene’s repository

Tags:

svn

svnadmin

I want to take SVN dump of Apache Lucene’s repository. How to replicate the above repo to my local machine?

like image 672
Allahbaksh Asadullah Avatar asked Dec 06 '25 16:12

Allahbaksh Asadullah


1 Answers

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.

like image 60
Kaleb Pederson Avatar answered Dec 08 '25 22:12

Kaleb Pederson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!