SVN service backup steps 1. Prepare the source server and target server
2. Install the SVN server on the target server (251). The script is as follows: 3. Create a new repository (svnadmin create path). The script is as follows: 4. Enter the root directory of the svn-storage-bak warehouse. The script is as follows: 5. Copy hooks/pre-revprop-change.tmpl to hooks/pre-revprop-change. The script is as follows: 6. Add execution permissions to the pre-revprop-change script above. The script is as follows: 7. Edit the pre-revprop-change script, change the last line exit 1 to exit 0, and save. The operation is as follows: 8. Use svnsync to set up a new warehouse synchronization to point to the target warehouse (svnsync init file://// current target svn warehouse path, source warehouse url). The script is as follows: 9. Then enter the username and password of the current server. and the username and password of the source svn server 10. Perform SVN synchronization backup. The script is as follows: Then start backing up. 11. Write the synchronization script in step 10 into a script file and redirect the log output to facilitate checking whether the synchronization is successful later. Then set it in the crontab scheduled task. It is executed at 1:00 a.m. every day. (I now write the synchronization script directly in crontab. It is recommended to write a separate script file to execute it regularly.) My scheduled task writing method (reference): 12. Start the SVN service. The specific script is as follows: 13. Test to see if the synchronization is successful Use For example: I use 219 to do a test on the target server. Summarize The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links You may also be interested in:
|
<<: Problems with index and FROM_UNIXTIME in mysql
>>: Analysis and solution of data loss during Vue component value transfer
Table of contents Tomcat class loader hierarchy W...
We often encounter this situation in front-end de...
Related Articles: Website Design for User Experien...
1. Background In the context of rapid updates and...
Table of contents Scenario Task idea analyze Conc...
Note: I use Centos to install docker Step 1: Inst...
Preface 1. Debounce: After a high-frequency event...
This article shares the specific code of JavaScri...
<br />Related article: Analysis of Facebook&...
The detailed process of installing python3.7.0 on...
This article shares the specific code of JavaScri...
1. Introduction to Prometheus Prometheus is an op...
The front-end development department is growing, ...
Table of contents Add Configuration json configur...
1. Overview of viewport Mobile browsers usually r...