Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize full backup and incremental backup of SVN Warehouse

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces "how to achieve full backup and incremental backup of SVN warehouse". In daily operation, I believe that many people have doubts about how to achieve full backup and incremental backup of SVN warehouse. The editor has consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "how to achieve full backup and incremental backup of SVN warehouse". Next, please follow the editor to study!

Warehouse backup

Svnadmin dump

Backup in a variety of ways

If there are too many versions, the process of dump will be very slow

Backup takes time, and recovery takes more time.

The data becomes larger during backup and may become smaller after recovery

Passwd and authz under the warehouse will not be backed up.

Full backup

Execute the following command sudo svnadmin dump / path/repository > / path/repository-backup.2019-12-27 on the server that needs to back up the SVN repository

Make a backup of version 0-2

Sudo svnadmin dump / path/repository- r 0:2-incremental > / path/repository-backup_0-2.2019-12-27

Incremental parameter description

It exports the version incrementally, that is, only changes since the previous version are exported each time. The benefits are as follows:

First: a large document can be divided into several small files.

Second: when the version library already exists, we only need to export the modified part each time, not the whole version library every time.

You can even automatically use the modified dump of the day for backup every night through the hook script.

Warehouse migration

Use tools such as SCP to transfer the backed up files to the target server, such as / home directory.

# set up a new svn warehouse sudo svnadmin create / path/new_repository# import data sudo svnadmin load / path/new_repository < / home/repository-backup.2019-12-27 this is the end of the study on "how to achieve full backup and incremental backup of SVN warehouse". I hope to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report