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

Helm installation on rhel 9

 You can do install with 2 commands  first one is curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-hel...