User Tools

Site Tools


mywiki:linux:office_linux_maintenance

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mywiki:linux:office_linux_maintenance [2015/07/13 17:18] – [Auto backup all svn repo with crontab] supermywiki:linux:office_linux_maintenance [2019/09/15 18:55] (current) – external edit 127.0.0.1
Line 3: Line 3:
 TWIKI Server: 10.64.44.136 TWIKI Server: 10.64.44.136
  
-Auto save Twiki setup with crontab:+Auto save Twiki setup with crontab, ie, at every hour:
   * add user "shaoguoh" to group www-data   * add user "shaoguoh" to group www-data
   * crontab -e #under user shaoguoh since shaoguoh is a user for svn commit   * crontab -e #under user shaoguoh since shaoguoh is a user for svn commit
-    0 * * * cd /mnt/data/www/twiki && ../s_add_wiki_new_file+    0 * * * cd /mnt/data/www/twiki && ../s_add_wiki_new_file
          
 +{{:mywiki:linux:s_add_wiki_new_files.zip|}}
 +
 +
 +SVN repo structure
 +<file>
 +/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)
 +
 +</file>
          
 ====== Auto backup all svn repo with crontab ====== ====== Auto backup all svn repo with crontab ======
Line 13: Line 26:
  
 Auto backup all svn repo with crontab (partial backup): Auto backup all svn repo with crontab (partial backup):
-  * Ordered List ItemSetup svn daemon for 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     svnserve -d -r /mnt/data/svn_backup/repo/ --config-file mnt/data/svn_backup/svn_cfg/conf/svnserve.conf
  
Line 19: Line 32:
  
   * crontab -e  #under user svnsync since only svnsync have right to backup   * crontab -e  #under user svnsync since only svnsync have right to backup
-    0 * * *  /home/svnsync/bin/svn_backup.py+    0 * * *  /home/svnsync/bin/svn_backup.py 
 +     
 +{{:mywiki:linux:svn_backup.zip|}} 
 + 
 +File Structure 
 +<file> 
 +/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 
 + 
 +</file>
mywiki/linux/office_linux_maintenance.1436779121.txt.gz · Last modified: (external edit)