Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Svn synchronous mirror: svnsync

Shulou Source: shulou.com Published: 2022-06-03 06:59:29 10月01日 Update

Source: http://192.168.1.100/svn/hunt/ destination: file:///data/hunt/svn_backup/Project01/ method: destination: 1. Create a project: svnadmin create / data/hunt/svn_backup/Project01/ 2, change pre-revprop_change to the hooks directory Cp pre-revprop-change.tmpl pre-revprop-change chmod 755 pre-revprop-change echo "exit 0" > pre-revprop-change 3. Initialize copying the corresponding conf files to the corresponding directory, such as user.conf, authz and other svnsync init file:///data/hunt/svn_backup/Project01/ http://192.168.1.100/svn/hunt/ syntax: svnsync init destination side svn directory source side svn directory synchronization process requires root password, enter it casually Then there is the svn user / password, which normally displays something like this: Copied properties for revision 0. 4. The process of executing synchronous svnsync sync file:///data/hunt/svn_backup/Project01/-- username admin-- password admin will display the following content: Transmitting file data. Committed revision 1. Copied properties for revision 1. Transmitting file data. Committed revision 2. Copied properties for revision 2. Transmitting file data. Committed revision 3. Copied properties for revision 3.... Source side: 1. Modify post-commit: cp post-commit.tmpl post-commit chmod 755 pre-revprop-change replace the last two lines in post-commit with svnsync sync-- non-interactive file:///data/hunt/svn_backup/Project01/-- username admin-- password admin Note: the svnsync process may cause synchronization failure due to network problems. Report the following error: Failed to get lock on destination repos... It may be locked at this time. Change the lock: svn propdel svn:sync-lock-- revprop-r 0 file:///data/hunt/svn_backup/Project01/ (destination synchronization library)

Tags: Synchronization directory target procedure content password input file method user purpose network syntax error problem project mirror Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia macOS MariaDB Shulou Technology Shulou Tech Info