mywiki:linux:office_linux_maintenance
Table of Contents
Auto Save TWIKI to SVN with crontab
TWIKI Server: 10.64.44.136
Auto save Twiki setup with crontab, ie, at every hour:
- add user “shaoguoh” to group www-data
- crontab -e #under user shaoguoh since shaoguoh is a user for svn commit
0 * * * * cd /mnt/data/www/twiki && ../s_add_wiki_new_file
SVN repo structure
/mnt ├── data │ ├── ppa-data -->svn repo: ppa-data │ ├── ppa_service -->svn repo: ppa_service │ ├── sys_etc_script -->svn repo: sys_ett_script │ └── www -->svn repo: TWIKI (also link to apatch2 server)
Auto backup all svn repo with crontab
Backup Server: local vmawre with ubuntu 14.x. Its dynamically IP currently is 10.64.44.51
Auto backup all svn repo with crontab (partial backup):
- Setup svn daemon for partial backup (put it in /etc/rc.loca)
svnserve -d -r /mnt/data/svn_backup/repo/ –config-file mnt/data/svn_backup/svn_cfg/conf/svnserve.conf
- Create user svnsync since only user svnsync allowed to backup svn
- crontab -e #under user svnsync since only svnsync have right to backup
0 * * * * /home/svnsync/bin/svn_backup.py
File Structure
/mnt/ ├── data │ ├── svn_backup │ │ ├── repo ->folder to partially backup svn repos from 10.64.44.136 │ │ ├── svn_cfg ->For svnserve daemon to read svnserve.conf file │ │ └── template_repos_svnsync ->For initial repo template │ ├── www ->For testing new TWIKI │ └── www.new
mywiki/linux/office_linux_maintenance.txt · Last modified: by 127.0.0.1
