Bup – An efficient backup system based on the git packfile format
bup.github.io
bup.github.io
This is really a stopblocker for me.
Obnam ( http://obnam.org ) is a similar tool but support forgetting old generations. However, it still suffers for youth problems and tends to corrupt backup repository when pruning old data on a remote server.
I'm really looking forward for a mature and feature full backup system based on git principes. Bup or obnam might be one of those.
I modeled ddar after Tarsnap.
I switched to atic instead, which also started taking longer to run backups as more things changed, and longer still to check the archives, but it is still faster than obnam by a significant margin:
I use duply for unattended, automated backups.
duplicity inc \
--sign-key $PGP_PRIV_ID \
--encrypt_key $PGP_PUB_ID \
--use-agent \
${source} ${dest}It does encryption, deduplication, scheduling, pruning etc. I use it at home and run the director and storage daemons in a jail on my FreeBSD NAS, which coordinates all of my computers together for backup regularly. I then back up the encrypted backups to Crashplan.
I tried other stuff (especially duplicity), but they just didn't work very well for me. Restoring encrypted backups with duplicity was especially slow and annoying and even using the duply frontend it was rather fickle.
Bacula has some disadvantages though... for one it is a bit complicated to get working. It's partitioned into multiple daemons, each of which handles a different task and which can be on different machines. This makes it flexible, but also makes the configuration more complicated. It also works best if you have a central backup server that can run the director and storage daemons 24/7. You can set it up to work all on one computer and just dump to a "dumb" storage drive, but it is really designed to work with a central server.
I've been out of that field for a while now through, so I'm not sure how much of that is common nowadays.
I've looked a some of the newer options like Bup, Attic, Obnam etc.
However, none of them seem to support S3 as an endpoint, which is a shame. They all seem to need a full-fledged *nix server on the other end.
Does anybody know of any of these new-fangled de-dupe backup apps that works with just S3?
- you push your files to it
- it optionally encrypts the content and hierarchy
- and stores it pretty much anywhere it can handle (on your disk, on S3, on MongoDB, on GCS, on another instance of camlistore, ...)
1: http://www.rath.org/s3ql-docs/impl_details.html (last paragraph) 2: http://www.daemonology.net/blog/2009-06-24-encrypt-then-mac....
https://news.ycombinator.com/item?id=7245297 (a year ago)
https://news.ycombinator.com/item?id=8620236 (3 months ago)
http://www.stavros.io/posts/holy-grail-backups/
Summary: Use attic.
The only catch is that you have to make sure to back up the (metadata-only) git repository itself also, and maintaining this backup on anything that is not a direct filesystem is painful.
[1] Through my tool, glacier-cli, for which git-annex has native support.
[2] I wrote ddar and the git-annex support for it.
git clone /my/repo /tmp/backup-git-annex
tar cvf /tmp/backup-git-annex.tar /tmp/backup-git-annex
That way, you're left with a single tar file to backup.> git-annex is not a backup system. It may be a useful component of an archival system, or a way to deliver files to a backup system
With this in mind, can we treat it as a backup tool? Assuming backing up the git repository itself as you mentioned.
- New photos live on my laptop (in my Dropbox and covered by Backblaze)
- I manually copy photos from my laptop to a RAID array on a server elsewhere in my house when I'm done editing/processing them
- The server backs up the photos to S3
S3 is the last bastion, so to speak. I expect that normally, I pull any photos I need back off my server. But the house burns down, I go to S3.
I run a cron job on my backup server that picks up all changed files (in my photo storage dir) and pushes them to S3 with s3cmd[1]. It's a pretty 'dumb' process, but works well.
The S3 <-> Glacier lifecycle stuff is pretty cool, so the plan is to eventually enable it to deep-archive older photos.