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

Backup of svn server building & lt;3>

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

Share

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

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

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