Duplicity pour l'encryptage des données
http://duplicity.nongnu.org/duplicity.1.html http://en.wikipedia.org/wiki/Duplicity_(software)
Premiers tests
root@tour-de-controle:~# duplicity /etc rsync://root@backup-horsite.ca.auf.org/../var/lib/BACKUP-RSYNC/test-dir GnuPG passphrase: Local and Remote metadata are synchronized, no sync needed. Last full backup date: none No signatures found, switching to full backup. Retype passphrase to confirm: --------------[ Backup Statistics ]-------------- StartTime 1343329872.48 (Thu Jul 26 15:11:12 2012) EndTime 1343329873.26 (Thu Jul 26 15:11:13 2012) ElapsedTime 0.79 (0.79 seconds) SourceFiles 892 SourceFileSize 1448122 (1.38 MB) NewFiles 892 NewFileSize 1448122 (1.38 MB) DeletedFiles 0 ChangedFiles 0 ChangedFileSize 0 (0 bytes) ChangedDeltaSize 0 (0 bytes) DeltaEntries 892 RawDeltaSize 1012421 (989 KB) TotalDestinationSizeChange 379267 (370 KB) Errors 0 -------------------------------------------------
NB : rsync://root@backup-horsite.ca.auf.org/../var/lib/BACKUP-RSYNC/test-dir.
- Sans le "..", j'ai une erreur :
root@tour-de-controle:~# duplicity /etc rsync://root@backup-horsite.ca.auf.org/var/lib/BACKUP-RSYNC GnuPG passphrase: rsync: change_dir "/root/var/lib/BACKUP-RSYNC" failed: No such file or directory (2)
L'explication est dans le man duplicity. -- ProgFou
using rsync over ssh (only key auth) rsync://user@host.com[:port]/relative_path rsync://user@host.com[:port]//absolute_path
Ce qui donne à l'arrivée :
mnombre@backup-horsite:~$ ls -al /var/lib/BACKUP-RSYNC/test-dir -rw------- 1 root root 211 26 jui 15:15 duplicity-full.20120726T191056Z.manifest.gpg -rw------- 1 root root 379267 26 jui 15:15 duplicity-full.20120726T191056Z.vol1.difftar.gpg -rw------- 1 root root 54816 26 jui 15:15 duplicity-full-signatures.20120726T191056Z.sigtar.gpg
Après quelques modifs bidons :
root@tour-de-controle:~# duplicity /etc rsync://root@backup-horsite.ca.auf.org/../var/lib/BACKUP-RSYNC/test-dir GnuPG passphrase: Synchronizing remote metadata to local cache... Copying duplicity-full-signatures.20120726T191056Z.sigtar to local cache. Copying duplicity-full.20120726T191056Z.manifest to local cache. Last full backup date: Thu Jul 26 15:10:56 2012 --------------[ Backup Statistics ]-------------- StartTime 1343330403.62 (Thu Jul 26 15:20:03 2012) EndTime 1343330403.82 (Thu Jul 26 15:20:03 2012) ElapsedTime 0.20 (0.20 seconds) SourceFiles 893 SourceFileSize 1449244 (1.38 MB) NewFiles 3 NewFileSize 9311 (9.09 KB) DeletedFiles 0 ChangedFiles 1 ChangedFileSize 102 (102 bytes) ChangedDeltaSize 0 (0 bytes) DeltaEntries 4 RawDeltaSize 1228 (1.20 KB) TotalDestinationSizeChange 953 (953 bytes) Errors 0 -------------------------------------------------
et :
backup-horsite:/var/lib/BACKUP-RSYNC/test-dir# ls -alh total 460K drwxr-xr-x 2 root root 4,0K 26 jui 15:24 . drwxr-xr-x 15 backuppc backuppc 4,0K 26 jui 15:23 .. -rw------- 1 root root 211 26 jui 15:15 duplicity-full.20120726T191056Z.manifest.gpg -rw------- 1 root root 371K 26 jui 15:15 duplicity-full.20120726T191056Z.vol1.difftar.gpg -rw------- 1 root root 54K 26 jui 15:15 duplicity-full-signatures.20120726T191056Z.sigtar.gpg -rw------- 1 root root 204 26 jui 15:24 duplicity-inc.20120726T191056Z.to.20120726T191959Z.manifest.gpg -rw------- 1 root root 953 26 jui 15:24 duplicity-inc.20120726T191056Z.to.20120726T191959Z.vol1.difftar.gpg -rw------- 1 root root 362 26 jui 15:24 duplicity-new-signatures.20120726T191056Z.to.20120726T191959Z.sigtar.gpg
Encore quelques modifs, et un petit full backup :
root@tour-de-controle:~# duplicity full /etc rsync://root@backup-horsite.ca.auf.org/../var/lib/BACKUP-RSYNC/test-dir GnuPG passphrase: Local and Remote metadata are synchronized, no sync needed. Last full backup date: Thu Jul 26 15:22:49 2012 Retype passphrase to confirm: --------------[ Backup Statistics ]-------------- StartTime 1343330642.54 (Thu Jul 26 15:24:02 2012) EndTime 1343330642.94 (Thu Jul 26 15:24:02 2012) ElapsedTime 0.40 (0.40 seconds) SourceFiles 893 SourceFileSize 1449346 (1.38 MB) NewFiles 893 NewFileSize 1449346 (1.38 MB) DeletedFiles 0 ChangedFiles 0 ChangedFileSize 0 (0 bytes) ChangedDeltaSize 0 (0 bytes) DeltaEntries 893 RawDeltaSize 1013645 (990 KB) TotalDestinationSizeChange 379752 (371 KB) Errors 0 -------------------------------------------------
Ça donne :
backup-horsite:/var/lib/BACKUP-RSYNC/test-dir# ls -alh total 1,4M drwxr-xr-x 2 root root 4,0K 26 jui 15:28 . drwxr-xr-x 15 backuppc backuppc 4,0K 26 jui 15:23 .. -rw------- 1 root root 211 26 jui 15:15 duplicity-full.20120726T191056Z.manifest.gpg -rw------- 1 root root 371K 26 jui 15:15 duplicity-full.20120726T191056Z.vol1.difftar.gpg -rw------- 1 root root 212 26 jui 15:27 duplicity-full.20120726T192249Z.manifest.gpg -rw------- 1 root root 371K 26 jui 15:27 duplicity-full.20120726T192249Z.vol1.difftar.gpg -rw------- 1 root root 211 26 jui 15:28 duplicity-full.20120726T192356Z.manifest.gpg -rw------- 1 root root 371K 26 jui 15:28 duplicity-full.20120726T192356Z.vol1.difftar.gpg -rw------- 1 root root 54K 26 jui 15:15 duplicity-full-signatures.20120726T191056Z.sigtar.gpg -rw------- 1 root root 54K 26 jui 15:27 duplicity-full-signatures.20120726T192249Z.sigtar.gpg -rw------- 1 root root 54K 26 jui 15:28 duplicity-full-signatures.20120726T192356Z.sigtar.gpg -rw------- 1 root root 204 26 jui 15:24 duplicity-inc.20120726T191056Z.to.20120726T191959Z.manifest.gpg -rw------- 1 root root 953 26 jui 15:24 duplicity-inc.20120726T191056Z.to.20120726T191959Z.vol1.difftar.gpg -rw------- 1 root root 362 26 jui 15:24 duplicity-new-signatures.20120726T191056Z.to.20120726T191959Z.sigtar.gpg