Get the App
SLTechnology News&Howtos  ›  Servers  › 

Backup of svn server building & lt;3>

Shulou Source: shulou.com Published: 2022-06-02 20:25:48 09月22日 Update

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

Tags: Code project backup server service three host branch file document time permission environment directory script more and more off-topic production input Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL NVidia Shulou Technology vpn Docker