duplicity
暗号化バックアップツール
注意
- 0.6.22 だと、s3+http が使えないらしい
install
# yum --enablerepo=epel install duplicity python-paramiko python-crypto python-boto
duplicity をソースから入れる場合には、下記も入れる
# yum install python-setuptools python-devel librsync-devel python-lockfile
バックアップ /opt 配下を、/tmp に置く。
# duplicity full --exclude-device-files --exclude-other-filesystems /opt/ file:///tmp/ Import of duplicity.backends.dpbxbackend Failed: No module named dropbox Local and Remote metadata are synchronized, no sync needed. Last full backup date: none GnuPG passphrase: Retype passphrase to confirm: --------------[ Backup Statistics ]-------------- StartTime 1441773984.33 (Wed Sep 9 13:46:24 2015) EndTime 1441773984.39 (Wed Sep 9 13:46:24 2015) ElapsedTime 0.07 (0.07 seconds) SourceFiles 2 SourceFileSize 4096 (4.00 KB) NewFiles 2 NewFileSize 4096 (4.00 KB) DeletedFiles 0 ChangedFiles 0 ChangedFileSize 0 (0 bytes) ChangedDeltaSize 0 (0 bytes) DeltaEntries 2 RawDeltaSize 0 (0 bytes) TotalDestinationSizeChange 206 (206 bytes)
バックアップファイル確認
# duplicity list-current-files s3+http://path/to/file
3日前のデータ確認
# duplicity list-current-files --time 3D s3+http://path/to/dir
archive/file を /home/test にリストアする ※ 既にtest があると上書きされる
# duplicity restore --file-to-restore archive/file s3+http://path/to/dir /home/test
duplicity collection-status s3+http://bucket/