I have successfully made backup of my SVN repository as described here. However, how does one restores backed-up repository
, i.e. initiate reverse operation of restoring backup, because after command:
svnadmin dump /opt/repositories/TestRepo | bzip2 >> bckRepo_Test.bz2
file ueBckRepo_Test.bz2
is created. After bunzip2
-ing it, I simply get file ueBckRepoTest
in current dir, how do I then extract svn repository (dir structure with ALL FILES in it)?
Asked
Active
Viewed 511 times
0

KernelPanic
- 173
- 1
- 1
- 9
2 Answers
1
I've managed to finish the task:
- Create new
repository
using svnadmin create command - Extract compressed file contents using
bzip2 -dc repoBackup.bz2 | svnadmin load /path/to/newly_created_repository

KernelPanic
- 173
- 1
- 1
- 9
-
Is it possible to execute this commands on Synology Diskstation NASes? – KernelPanic Nov 23 '18 at 13:38
1
To import the dump file, make sure it’s an existing repository. If the repository is unavailable, use svnadmin create /path/to/repository as you noted above.
But note, you don’t have to import the dump file in the same SVN repository path. Use the following command:
svnadmin load /path/to/repository < svnexport.dump

AMaina
- 11
- 3