Search

duplicity: Encrypted bandwidth-efficient backup using the rsync algorithm

September 9th, 2007 by ana

Entry submitted by Vincent Fourmond. DPOTD needs your help, please contribute!

I’ve recently grown paranoid about my data, and I keep using rsync to keep backup of various files a bit everywhere. It works great for most of the things I use, but it lacks fundamental things you would want from a real backup system, such as the possibility to come back to an earlier state.

So I went looking for something else, and I found that duplicity shows somehow the same syntax and ease of use than rsync: there is no need to write a configuration file, and it uses a very similar way to specify sources and targets. It features among others:

  • incremental backup
  • uses librsync to backup only what is necessary
  • distant scp-like access
  • no need to install duplicity on remote machine, just a scp server should do
  • GPG encryption and signature to protect data saved on a not-so-trusted host

To use it, just run something like:

duplicity data scp://vincent@server/saves

Or, for local file backup:

duplicity data file:///var/backup/data

The target directory must exist: duplicity does not create it for you. If you don’t plan to use GPG encryption, be sure to add –no-encryption to the command-line. Here is duplicity in full action:

11:58 vincent@server ~ duplicity --no-encryption Data file:///home/vincent/saves
No signatures found, switching to full backup.
--------------[ Backup Statistics ]--------------
StartTime 1187949557.65 (Fri Aug 24 11:59:17 2007)
EndTime 1187949577.54 (Fri Aug 24 11:59:37 2007)
ElapsedTime 19.88 (19.88 seconds)
SourceFiles 3869
SourceFileSize 107865956 (103 MB)
NewFiles 3869
NewFileSize 107865956 (103 MB)
DeletedFiles 0
ChangedFiles 0
ChangedFileSize 0 (0 bytes)
ChangedDeltaSize 0 (0 bytes)
DeltaEntries 3869
RawDeltaSize 106836592 (102 MB)
TotalDestinationSizeChange 26514785 (25.3 MB)
Errors 0
-------------------------------------------------

duplicity was already part of Debian Sarge and Ubuntu Dapper. Development seems still alive, even though there are some bugs still at large.

Rate this post: 15 Votes | Average: 4.27 out of 515 Votes | Average: 4.27 out of 515 Votes | Average: 4.27 out of 515 Votes | Average: 4.27 out of 515 Votes | Average: 4.27 out of 5 (15 votes, average: 4.27 out of 5)
Loading ... Loading ...

Posted in Debian, Ubuntu |

20 Responses

  1. FreeSoftNews » Blog Archive » duplicity: Encrypted bandwidth-efficient backup using the rsync algorithm Says:

    […] Read more at Debian Package of the Day […]

  2. www.onlinebackupvault.com Says:

    Hi,
    we use www.onlinebackupvault.com
    we are on their beta program and so far are beyond happy. We negotiated a discounted rate off their normal rates because we signed up early.
    I used to use the “cheapy” guys but there is a real difference all around in a service such as onlinebackupvault and the 5 dollar guys. They have real person tech and customer service, their software and servers are designed to backup sql databases and excahnge databases not just 16 yr olds ipod mp3’s. They do offer a residential and buisnsess app however i do believe they are focusing on the small buisness client.
    good luck!!
    please let me know feedback on what u guys are doing

  3. Tero Miettinen Says:

    Can anyone tell me how this differs from rdiff-backup?

  4. Vincent Fourmond Says:

    I’d say the main interest is seamless GPG encryption/signing, so you can backup your data on untrusted hosts

  5. dAniel hAhler Says:

    Duplicity has been sponsored by rsync.net and there have been a lot of bug fixes and patches been added.
    The result was a new stable release 4.3, where most of the bugs should have been gone.
    Version 0.4.3 is not yet available in Debian or Ubuntu.

  6. Marius Scurtescu Says:

    Another difference from rdiff-backup is probably the fact that duplicity can backup to ftp, webdav, s3, etc.

    Look at the last feature:
    http://duplicity.nongnu.org/features.html

  7. Shai Says:

    How does this relate to rsyncrypto?

  8. Richard Says:

    Good article about Duplicity for a backup server at http://www.linuxjournal.com/article/9174 - however, it turns out duplicity doesn’t support hard links so it’s a non-starter for full-OS backup, and some data directories.

    I’m currently using DAR - has some nice features, including incremental or differential backups, per-file compression (so you can easily seek within file, and a single disk block error should mean you lose only one file, typically), and it has a handy GUI (KDAR for KDE) to help you get going.

    With this, GPG and rsync I should have the equivalent of duplicity, with full hard links etc.

  9. bob Says:

    What advantages does duplicity provide over rsnapshot?

  10. links for 2007-09-11 « Stand on the shoulders of giants Says:

    […] Debian Package of the Day » Blog Archive » duplicity: Encrypted bandwidth-efficient backup using the rsync algorithm (tags: debian synchronize backup rsync package) […]

  11. Pybackpack: backup facile e potente « www.ubuntista.it Says:

    […] Per i veri smanettoni, invece, c’è Duplicity (backup crittografato): la cosa bella è questa, secondo me: no need to install duplicity on remote machine, just a scp server should do. Posted by ubuntista Filed in backup, applications, ubuntu […]

  12. www.onlinebackupvault.com Says:

    Online backup vault is an automated unattended solution. many of the other mentioned system are manual or ftp based sites..OBV requires no user intervention

  13. Dov Sugarman Says:

    I wanted to let you know about a cool new backup program that offers FREE, UNLIMITED backup.

    With Zoogmo you control where your files are backed up by building a backup network of your own or your friends’ computers.

    Zoogmo automatically backs up ALL of your data over the internet, using a combination of Triple-DES and AES 256 encryption to make sure that only you have access to your files.

    Check out Zoogmo at www.zoogmo.com to learn more and begin turning your social network into your backup network.

    Remember, with Zoogmo you have no annoying monthly fees - totally free unlimited backup you can trust!

  14. www.onlinebackupvault.com Says:

    the zoomgo thing looks cute…but i think its WAY to risky.. why would u put ur files on another users pc? what if their computer crashes?
    what if their kid spills a can of coke??
    i like www.onlinebackupvault.com or similiar services where data sits in a secure offsite location immune from 3rd party happenings…what do u guys think?

  15. vince Says:

    Sorry for interruptinr all that spam with a real comment, but how does this compare to unison, which is also packaged in debian?

  16. Ubuntu Life » Blog Archive » Duplicity, Tus datos a salvo Says:

    […] Visto | el paquete debian del dia Tambien te puede interesar: […]

  17. onlinebackupvault.com Says:

    there are many good options for online data backup / duplicating. there are some good peer to peer stuff.. my point earlier was as far as a remote offsite solution goes… there are alot of good options outthere… onlinebackupvault.com being one of them

  18. nick Says:

    Thanks to the shameless spam by obv, I shall never even consider using their services. Too bad, was in the market for some tbytes of offsite backup, too.

  19. The Linux Index » Debian Package of the Day: deborphan: find packages you don’t want Says:

    […] Those forgotten packages can cost you. They might contain setuid binaries or running daemons that could compromise your security. Future upgrades take longer, and there will be more to download. Your backups have grown. You are doing backups, right? That’s what duplicity was for. […]

  20. Richard Says:

    Re Unison - this is quite similar to rsync but optimised for 2-way syncing, and generally better at doing that. Use rsync if you only need one way syncing.

    Neither unison or rsync are backup packages really, in that they don’t let you return to previous version of the files backed up. Duplicity seems to be a nice layer on top of rsync that adds some useful backup features as well as encryption. DAR is a non-rsync-based backup tool that also has some nice features including incremental backup, encryption, single-file-compression (more resilient to bad blocks), etc.

    What would be really good is a review of various open source backup and sync tools for Linux.

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.