https://wiki.paskvil.com/index.php?title=Moving_a_SVN_Repository&feed=atom&action=historyMoving a SVN Repository - Revision history2024-03-28T23:06:35ZRevision history for this page on the wikiMediaWiki 1.22.0https://wiki.paskvil.com/index.php?title=Moving_a_SVN_Repository&diff=11&oldid=prevAdmin: Created page with "* on source machine: svnadmin dump /path/to/repo > repo.dump * transfer the file to the destination machine, then on the destination machine: cd /repos/path svnadmin create ne..."2011-06-27T21:37:01Z<p>Created page with "* on source machine: svnadmin dump /path/to/repo > repo.dump * transfer the file to the destination machine, then on the destination machine: cd /repos/path svnadmin create ne..."</p>
<p><b>New page</b></p><div>* on source machine:<br />
svnadmin dump /path/to/repo > repo.dump<br />
* transfer the file to the destination machine, then on the destination machine:<br />
cd /repos/path<br />
svnadmin create new-repo<br />
svnadmin load new-repo < repo.dump<br />
<br />
'''Note''': if your repo is mature/large, you'll probably want to add compression along the way.<br />
<br />
'''Note''': if you have more than one repo on the source machine, all in the same folder (/repos/path), you can do:<br />
* on source machine:<br />
cd /repos/path<br />
for i in `ls`; do svnadmin dump $i > $i.dump<br />
tar cfz dumps.tar.gz *.dump<br />
rm *.dump # just to clean-up<br />
* transfer the dumps.tar.gz to the destination machine, then:<br />
mkdir /new/repos/path<br />
tar xfz dumps.tar.gz<br />
for i in `ls *.dump`; do<br />
svnadmin create `basename $i .dump`;<br />
svnadmin load `basename $i .dump` < $i;<br />
done<br />
rm dumps.tar.gz *.dump # just to clean-up</div>Admin