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

Recovery of lost log files for svn

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

The db/revprops/ in the svn warehouse contains the operation log of svn, a single file stored in the form of a version number.

The db/revs/ in the svn warehouse stores svn's data log, as well as a single file in the form of a version number.

Today, when we are preparing to modify the operation log in batches, because there is no suspension of service, there are still operations during the backup and recovery period, resulting in the loss of a log file. The technician reported that a directory svn could not view log and could only submit and could not download updates.

Many online solutions have been tried, but in the end, it is most convenient to forge log files.

For example, the missing log files are:

/ data0/svn/dev3/db/revprops/76/76897

Directly copy a file next to it.

Cp 76898 76897

It can be used directly in theory. However, the contents still need to be modified to be correct.

Vim 76897

* K 10svn:authorV 6yangliK 8svn:dateV 272019-10-09T04:06:03.691254ZK 7svn:logV 576897End *

Notice the numbers above. 10, 6, 8, 27, 5, respectively, is the length of the string below. This must be consistent, or there will be an error that the hash has no Terminator.

Just change the time and comments correctly.

Note:

1. Avoid manipulating SVN log files and data files as much as possible.

2, the operation of SVN files must stop service, stop service, stop service.

3. Be sure to back up, back up and back up before operation.

4. Keep in mind that operation and maintenance are risky and should be operated with caution.

Take a fall and gain wisdom. Thank God that there is no big problem. Be more careful in the future and improve the plan before taking action.

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