0

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)?

1

I've managed to finish the task:

  1. Create new repository using svnadmin create command
  2. Extract compressed file contents using
    bzip2 -dc repoBackup.bz2 | svnadmin load /path/to/newly_created_repository
  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.