| 76 | * [http://blog.livedoor.jp/kurt0027/archives/51808421.html hollyなblog:rsyncで特定のファイルだけ転送する] |
| 77 | |
| 78 | * rsync sample |
| 79 | {{{ |
| 80 | RSYNCOPT="--quiet -a --compress --hard-links --xattrs --delete --force --super --timeout 600" |
| 81 | rsync --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 | }}} |