duplicityを使って暗号化バックアップ
http://ambiesoft.ddo.jp/blog/archives/1766
以下、コマンドのメモです。とりあえず、ローカルの適当な場所にfrom、to、restoreという3つのディレクトリを作成します。fromをtoにバックアップして、toからrestoreにリストアしてみます。
# インストール $ sudo apt-get install -y duplicity # 準備 $ cd ~/tmp/ $ mkdir from $ mkdir to $ mkdir restore $ touch from/test.txt # fromをtoにバックアップ $ duplicity from/ file:///home/xxx/tmp/to/ Import of duplicity.backends.sshbackend Failed: No module named paramiko Import of duplicity.backends.giobackend Failed: No module named gio Synchronizing remote metadata to local cache... Deleting local /home/xxx/.cache/duplicity/cf916ece6cdee728e6def39a70bc3db8/duplicity-full-signatures.20130112T171351Z.sigtar.gz (not authoritative at backend). Deleting local /home/xxx/.cache/duplicity/cf916ece6cdee728e6def39a70bc3db8/duplicity-full.20130112T171351Z.manifest (not authoritative at backend). Last full backup date: none GnuPG passphrase: Retype passphrase to confirm: No signatures found, switching to full backup. --------------[ Backup Statistics ]-------------- StartTime 1358011229.58 (Sun Jan 13 02:20:29 2013) EndTime 1358011229.59 (Sun Jan 13 02:20:29 2013) ElapsedTime 0.00 (0.00 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 215 (215 bytes) Errors 0 ------------------------------------------------- $ ls -la to/ total 20 drwxrwxr-x 2 xxx xxx 4096 Jan 13 02:20 . drwxrwxr-x 5 xxx xxx 4096 Jan 13 02:13 .. -rw------- 1 xxx xxx 234 Jan 13 02:20 duplicity-full-signatures.20130112T172025Z.sigtar.gpg -rw------- 1 xxx xxx 189 Jan 13 02:20 duplicity-full.20130112T172025Z.manifest.gpg -rw------- 1 xxx xxx 215 Jan 13 02:20 duplicity-full.20130112T172025Z.vol1.difftar.gpg # toをrestoreにリストア $ duplicity restore file:///home/xxx/tmp/to/ restore/ Import of duplicity.backends.sshbackend Failed: No module named paramiko Import of duplicity.backends.giobackend Failed: No module named gio Local and Remote metadata are synchronized, no sync needed. Last full backup date: Sun Jan 13 02:20:25 2013 GnuPG passphrase: $ ls -la restore/ total 8 drwxrwxr-x 2 xxx xxx 4096 Jan 13 02:13 . drwxrwxr-x 5 xxx xxx 4096 Jan 13 02:13 .. -rw-rw-r-- 1 xxx xxx 0 Jan 13 02:13 test.txt上手くいっているような失敗しているような。。。様子を見ながら使っていこう。。。
No comments:
Post a Comment