[[FrontPage]] [[Rsync de backup]] #contents ---- *サーバ間Rsync [#i25fba28] 2012/12/29 初回 g7# /usr/local/bin/rsync -av --delete piano2nd.smb.net:/ /usr/home/Backups/Piano2nd/ var/tmp/sess_ff52010a9ecb7e1af1879615d79ac52103a02222 var/tmp/vi.recover/ var/yp/ var/yp/Makefile -> Makefile.dist var/yp/Makefile.dist sent 51917409 bytes received 185578548478 bytes 3132818.58 bytes/sec total size is 185392437780 speedup is 1.00 rsync warning: some files vanished before they could be transferred (code 24) at main.c(1518) [generator=3.0.9] g7# 2回目 var/run/munin/ sent 2050849 bytes received 145359755 bytes 123407.79 bytes/sec total size is 185410037394 speedup is 1257.78 g7# 三回目 sent 278922 bytes received 49731578 bytes 71802.58 bytes/sec total size is 185410211339 speedup is 3707.43 ---- 各サーバ間でデータのバックアップをしているが、障害により停止したサーバが、何処へデータを待避していたかは、プッシュでバックアップなので、そのサーバ内部に記述してある。障害時は確認出来ないのでメモっておく。 *Backup network [#tf4f04a4] **k222 [#y49fb544] #backup_to_piano 0 3 * * * root /root/bin/backup_to_piano.sh #!/bin/sh /usr/local/bin/rsync -vzrptgoL --delete /root/Backup_links_rsync piano.smb.net:/usr/Backups/222/ **guard [#ld0f2022] 30 2 * * * root /root/bin/backup_to_k222_all.sh 1 3 * * * root /root/bin/backup_tfc-address_to_piano.sh #!/bin/sh /usr/local/bin/rsync -av --delete / 210.255.122.222:/usr/Backups/Guard/ #!/bin/sh /usr/local/bin/rsync -vzrptgoL /root/Backups_rsync_tfc-address/ www.thousand-winds.net:/usr/home/TFC/ ##-a, --archive アーカイブモード(-rlptgoD オプションと同義)は使用不可 **mail.smb.net(hotshot.smb.net) [#c47a7a16] # Backup to Piano 30 2 * * * root /root/bin/backup_to_piano.sh # Backup to blackcube 15 2 * * * root /root/bin/backup_to_blackcube_all.sh #!/bin/sh /usr/local/bin/rsync -vpozrL --delete /root/Backups/ piano.smb.net:/usr/Backups/Hotshot/ #!/bin/sh #/usr/local/bin/rsync -av --delete / www.smb.net:/usr/Backups/hotshot/ /usr/local/bin/rsync -av / www.smb.net:/usr/Backups/hotshot/ **www.smb.net(blackcube.smb.net) [#qf032080] # Backup to Piano 35 2 * * * root /root/bin/backup_to_piano.sh #!/bin/sh /usr/local/bin/rsync -vzrptgoL --delete /root/Backups_rsync/ piano.smb.net:/usr/Backups/Blackcube/ **piano.smb.net [#e8cc0ee3] 05 2 * * * root /root/bin/backup_to_blackcube_all.sh #!/bin/sh /usr/local/bin/rsync -av --delete --exclude '/usr/Backups/*' / www.smb.net:/usr/Backups/Piano/7_1/all/ ---- #counter([total|today|yesterday]); &lastmod;