Backup of svn server building & lt;3>
Note: with more and more project in production environment, we need to back up at this time. Prevent the svn server from hanging up, resulting in code loss.
First, post the script directly
#! / bin/bash
For name in `ls-l / data/svn/ | awk'{print $9}'`; do
Svnadmin dump / data/svn/$name > / home/deploy/svnbak/$name-$ (date +% Y%m%d). Dump & & echo $(date +% FMI% T)
Done
(use traversal to find all projects, and then enter files ending in dump to facilitate import by other hosts)
2. Digression
Download svn to submit code and view log (TortoiseSVN-1.9.4.27285-x64-svn-1.9.4.msi)
Create three branches (branches trunk tags), and / below do not need to have permission to create directories (except for document projects)
[test:/]
@ test_member = r