Tuesday, 2 January 2018

How to take backup and restore svn repository


Step 1 

Create Dump from SVN repo

svnadmin dump /pathname/repo > /backup/svn/repo.dump

Compress backup svn to Gzip

For this we can compress the backup to and save disk size

svnadmin dump /pathname/repo | gzip -9 > /backup/svn/repo.dump.gz

Step 2

Restore Backup to repo

Create new repository with below command

svnadmin create /pathname/reponew

Now restore the dump to new repo

Before doing restore we need to unzip the dumb backup

gunzip /backup/svn/repo.dump.gz

svnadmin load /pathname/reponew < /backup/svn/repo.dumb

That’s all ……………….

No comments:

Post a Comment

Permanent hostname setup for RHEL7

Step 1 Set the host name on NMTUI tool like following nmtui set host name   then save and exit Step 2 add the following l...