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

2 Answers 2

2

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
1
  • Is it possible to execute this commands on Synology Diskstation NASes? Nov 23, 2018 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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .