Changes between Version 11 and Version 12 of TipAndDoc/backup
- Timestamp:
- Dec 27, 2012 11:57:46 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TipAndDoc/backup
v11 v12 10 10 * [http://serverfault.com/questions/313820/open-source-file-backup-tool-for-linux Open source file backup tool for linux - Server Fault] 11 11 12 = rsnapshot = 12 13 * [http://www.rsnapshot.org/ rsnapshot] 13 14 * http://www.rsnapshot.org/howto/1.2/rsnapshot-HOWTO.en.html#how_it_works … … 15 16 * [http://ie.u-ryukyu.ac.jp/howto/index.php?Software%2Frsnapshot Software/rsnapshot - PukiWiki] 16 17 * [http://might1976.doorblog.jp/archives/52693823.html 俺日記 : rsnapshotでリモートバックアップ環境を作る] 18 19 == mechanism == 20 * /etc/rsnapshot.conf 21 {{{ 22 retain hourly 24 23 retain daily 7 24 retain weekly 4 25 retain monthly 12 26 27 backup /etc/ shizuku/ 28 }}} 29 30 * rsnapshot hourly 31 1. rm hourly.23 32 1. mv hourly.22 hourly.23 33 1. ... 34 1. mv hourly.1 hourly.2 35 1. cp -al hourly.0 hourly.1 36 1. rsync /etc hourly.0/shizuku/ 37 * rsnapshot hourly 38 1. rm daily.6 39 1. mv daily.5 daily.6 40 1. ... 41 1. hourly.23 が存在すればmv houly.23 daily.0、無ければ何もしない 42 * 以下、weekly, monthlyも同様 43 * hourly.23 -> daily.0, daily.6 -> weekly.0, ... 44 * hourlyをcronで回さずに、daily, weeklyだけ回していると結果的に'''消えてしまう'''ので注意 17 45 18 46 = backuppc =