Changes between Version 6 and Version 7 of TipAndDoc/backup


Ignore:
Timestamp:
Dec 27, 2012 4:09:01 PM (12 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/backup

    v6 v7  
    7474 = rsync = 
    7575 * [http://d.hatena.ne.jp/dayflower/20090513/1242194477 rsync で pdumpfs みたいなことをする - daily dayflower] 
     76 * [http://blog.livedoor.jp/kurt0027/archives/51808421.html hollyなblog:rsyncで特定のファイルだけ転送する] 
     77 
     78 * rsync sample 
     79{{{ 
     80RSYNCOPT="--quiet -a --compress --hard-links --xattrs --delete --force --super --timeout 600" 
     81rsync --rsync-path="sudo rsync --log-file=$BACKUPLOG" $RSYNCOPT \ 
     82    -e "ssh -l $SSHUSER -i $SYNCKEY -p $BACKUPPORT" \ 
     83    --include-from=$RSYNCINCLUDE \ 
     84    / $BACKUPHOST:$BACKUPROOT 
     85}}} 
     86  * RSYNCINCLUDE 
     87{{{ 
     88+ /etc 
     89+ /etc/** 
     90+ /home 
     91+ /home/** 
     92+ /root 
     93+ /root/** 
     94+ /var 
     95+ /var/cache 
     96+ /var/cache/munin 
     97+ /var/cache/munin/** 
     98+ /var/lib 
     99+ /var/lib/mailman 
     100+ /var/lib/mailman/** 
     101+ /var/lib/munin 
     102+ /var/lib/munin/** 
     103+ /var/log 
     104+ /var/log/** 
     105+ /var/mail 
     106+ /var/mail/** 
     107+ /var/www 
     108+ /var/www/** 
     109 
     110# do keep below line 
     111- * 
     112}}}