| 1 2 3 4 5 6 7 8 9 | ||
|
Editor: karlberry
Time: 2011/10/12 21:44:38 GMT+0 |
||
| Note: must chmod rep-cache.db too | ||
changed: - bzcat myproject.dump.bz2 | svnadmin load /srv/svn/myproject/ >& /tmp/svimport.out proj=MYPROJECT bzcat myproject.dump.bz2 | svnadmin load /srv/svn/$proj/ >&/tmp/svimport.out changed: - chmod g+w -R /srv/svn/myproject/db/revs/* - chmod g+w -R /srv/svn/myproject/db/revprops/* chmod g+w -R /srv/svn/$proj/db/re* removed: - -From jexinwej Sat Aug 4 21:52:22 +0000 2012 -From: jexinwej -Date: Sat, 04 Aug 2012 21:52:22 +0000 -Subject: 1 -Message-ID: <20120804215222+0000@savannah.gnu.org/maintenance> -In-Reply-To: <20120804214648 0000@savannah.gnu.org/maintenance> - -1
Here's how to import an SVN repository.
Make sure that SVN is already enabled for the project.
You need to ask a SVN dump to the project admin as explained at SvnImportExistingRepo.
Once the user has provided it, login at Savannah. Since the process is usually long with lots of output, it's recommended to start it in a screen or redirect as below, etc.:
ssh vcs cd /root wget -nv http://url/to/myproject.dump.bz2 proj=MYPROJECT bzcat myproject.dump.bz2 | svnadmin load /srv/svn/$proj/ >&/tmp/svimport.out # alternatively, to see a percentage: # pv myproject.dump.bz2 | bzcat | svnadmin load -q /srv/svn/myproject/ rm myproject.dump.bz2 chmod g+w -R /srv/svn/$proj/db/re*
Sometimes a user may provided a tar of his local svn repository. In this case, please ask a proper svn dump (produced by svnadmin dump). Using a direct tar is not recommended because we may not be using the same versions of SVN, and sometimes the format changes with the new versions of SVN.