SVN backup and recovery

Source: Internet
Author: User
A simple SVN server is built to facilitate data synchronization. Now you need to transfer data and perform simple operations.

 

Close all running processes and confirm that noProgramAccess the Repository(For example, httpd, svnserve, or local users access the service directly ).

 

Back up SVN Repository
  1. # Compressed backup
  2. Svnadmin dump/home/workhome/SVN/Repository | gzip> ~ Repository-backup.gz
  3. # Backup without compression
  4. Svnadmin dump/home/workhome/SVN/Repository> ~ Repository-backup.svn

 Restore the svn Repository 

  1. # Create a new SVN Repository
  2. Svnadmin create/home/workhome/SVN/newrepository
  3. # Confirm success or failure
  4. Ls-L/home/workhome/SVN/newrepository
  5. # Importing repository data
  6. Svnadmin load/home/workhome/SVN/newrepository <~ Repository-backup.svn

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.