12 ms·
BorgBackup: Deduplicating Archiver
- bigdubs 7y agoCurious if this name is going to draw the ire of Paramount's copyright lawyers.
- slenk 7y agoGoogle has a system called Borg, and they are fine. Also, BorgBackup is not new; they have been around for a while.
- bigdubs 7y agoMy understanding was that the internal Borg was fine because it wasn't publicly available, versus this which is.
- slenk 7y agoThe word Borg itself I do not believe is trademarked. I didn't think you could trademark someone's last name? https://en.wikipedia.org/wiki/Bj%C3%B6rn_Borg https://en.wikipedia.org/wiki/Bj%C3%B6rn_Borg A search of borg in the patent office shows the name used a lot: http://tmsearch.uspto.gov/bin/showfield?f=toc&state=4806%3Avh5xwi.1.1&p_search=searchss&p_L=50&BackReference=&p_plural=yes&p_s_PARA1=&p_tagrepl%7E%3A=PARA1%24LD&expr=PARA1+AND+PARA2&p_s_PARA2=borg&p_tagrepl%7E%3A=PARA2%24COMB&p_op_ALL=AND&a_default=search&a_search=Submit+Query&a_search=Submit+Query http://tmsearch.uspto.gov/bin/showfield?f=toc&state=4806%3Av...
- trothamel 7y agoWhy not? If you look at https://en.wikipedia.org/wiki/Apple_(name) https://en.wikipedia.org/wiki/Apple_(name) , the surname 'Apple' is used quite a bit.
- ranDOMscripts 7y agoTell that to Uzi Nissan. https://nissan.com/Digest/The_Story.php https://nissan.com/Digest/The_Story.php
- slenk 7y agoWow...that sucks. If I ever bought anything Nissan Motor I would have to reconsider. I hate how easily corruptible trademark/copyright/patent rules are
- flurdy 7y agoBorg? Hardly, there is already a Google product with the same name. But more importantly, it is the name for a castle in several languages. So unless Paramamount is planning to sue a lot of very old places in Norway and other countries...
- capableweb 7y ago> there is already a Google product with the same name Borg at Google is not a product per se, it's a internal tool/service. Pretty sure you can name internal tools whatever you want.
- beagle3 7y agoIt is named in honour of Jonas Borgström [0], who wrote Attic, from which Borg was forked. [0] https://github.com/jborg https://github.com/jborg
- cmiles74 7y agoI've been using Borg for a couple of years now (and before that, Attic[0]) and I have been very happy with it. It's seen me through three laptops and it has been reliable and easy-to-use. [0]: https://attic-backup.org/ https://attic-backup.org/
- clumsysmurf 7y agoI wonder if I'm the only one with this phobia: i see a tool written in a dynamically typed language and automatically trust it less. Especially something that is responsible for all my data. I wonder if this is a good candidate project to be rewritten in rust.
- deleted 7y ago[deleted]
- blattimwind 7y agoIt actually would be for several reasons, which I could outline if people are interested (but I suspect they are not, so I will not go to the effort per-emptively). Also yes, there have been a number of bugs specifically due to both dynamic typing of the code and the dynamic data structures (msgpack, basically JSON) used.
- jmiserez 7y agoI used borg for a while but the bugs you mentioned and some of the discussions in the Github issues gave me pause. For my taste, there is still too much development going on for me to rely on it as my main backup solution.
- tarruda 7y agoSoftware written in dynamically typed languages can be robust, just as software written in the most strongly typed language can still be buggy. As an user of such critical piece of software, I would ask the following questions: * Is the software popular? * For how many years it has been battle tested? * Are there many reports of data corruption? * Is it well maintained? * Do the maintainers provide support? Borg/Attic has been greatly used for many years now and check all the boxes above. I don't think I've ever read about data corruption that was caused by a bug in it. Which language it is written in is nothing more than a mere curiosity for me.
- mixmastamyk 7y agoTest suite, uses analysis tools?
- urgeblumbling 7y agoUse, love, and support[1] borg. [1] https://liberapay.com/borgbackup/donate https://liberapay.com/borgbackup/donate
- rsync 7y agoWe[1] built borg into our environment[2] as soon as it was stable, release software. In the years since, it has (ironically) supplanted use of rsync as the de facto standard that our users back up to us with. As one of our users have said[2], borg is "the holy grail" of backups as it does everything rsync always did, and produces remotely encrypted backups that the provider has zero insight into. It also does not have the inefficiencies that the older, duplicity software has. If you are willing to go without (borg specific) technical support and do your retention with borg instead of our zfs snapshots, there is a special, discounted rate available.[4] [1] rsync.net [2] https://news.ycombinator.com/item?id=17408624 https://news.ycombinator.com/item?id=17408624 [3] https://www.stavros.io/posts/holy-grail-backups/ https://www.stavros.io/posts/holy-grail-backups/ [4] https://www.rsync.net/products/borg.html https://www.rsync.net/products/borg.html
- millettjon 7y agoI use borg with both rsync.net and borgbase.com. Both are great.
- blakesterz 7y agoinefficiencies that the older, duplicity software has. As much as I love duplicity, it does sort of suck when you get into larger numbers of files and gigabytes of data. It's so darn slow sometimes it's almost unusable. Good to know borg is better, I've been meaning to check that out!
- JackMcMack 7y agoIt's incredibly slow (backing up 1.5TB took more than a day), but the built-in support for PAR2 makes it worth it (for me). Sadly, it seems like borg has no built-in support for any kind of redundancy [1] [1] https://github.com/borgbackup/borg/issues/225 https://github.com/borgbackup/borg/issues/225
- Erlich_Bachman 7y agoDuplicity and Borg use two very distinct technologies under the hood - duplicity does differential partial backup archives (which all require a full backup AND a full list of all previous differential archives) and Borg uses deduplication. So yes it is much more efficient in many ways, not simply because it is newer and somehow is more efficiently coded, it is so because it uses different technology and backup model.
- gouggoug 7y agoI had never heard of borg backup, seems like a great backup tool. Now, I just installed it on my mac and running `borg --help` takes about 5 seconds before outputting the help. Same for any other `borg ...` command. I'm not quite sure why, but that's the only command I've noticed to be running slow on my system. I'm running borg 1.1.10.
- tenebrisalietum 7y agois it based on python?
- deleted 7y ago[deleted]
- hyperion2010 7y agohttps://github.com/borgbackup/borg https://github.com/borgbackup/borg 62% C 35% Python
- croon 7y ago3% magic?
- blattimwind 7y agoMost of the C code is vendored third party libraries, there are only 2000-3000 lines of C that are actually part of the project.
- wcip 7y agoThat's the Python interpreter and all the dependencies starting up. Shouldn't really matter if you are using it as a chron job.
- gouggoug 7y agoI see. The screencast on their website made it seem very fast (which it may have been on a beefier machine than mine?), so I was surprised.
- beagle3 7y agoI switched from bup backup to borg backup, because it generally works better for my use cases; however, there are two things bup does do better: 1. remote backup through ssh, especially de-duplicating between different clients, especially concurrent client backups. borg needs a compatible version installed on the other side (and compatibility has been broken between versions in the past); bup uses bare-bones ssh+sftp, so the other side can basically be anything. borg will have a lot of download to client from server if multiple clients back up to the same repository (essentially every time in most common use cases); bup will have a minimal download. borg maintains a repo lock, so multiple clients backing up to the same repo will be serialized; bup does not, so it can be concurrent. 2. Storage format borg's format is it's own format; bup's underlying data format is basically a git repo (which you can treat as such; you may need to manually apply "cat" to rebuild files, bit "git" and "cat" are all you need). I have heard good things about restic, but did not have a chance to evaluate it myself.
- frio 7y agorestic doesn't perform compression. Depending on your use case (I use it for photography backups, which don't compress well), that might be OK -- but it's something to be aware of.
- cmiles74 7y agoI see that BorgBackup is available in Chocolatey[0] and it looks like the current version. It's not clear to me if this is an official port or not, but I am interested. :-) [0]: https://chocolatey.org/packages/borgbackup#testingResults https://chocolatey.org/packages/borgbackup#testingResults
- frio 7y agoThere's so many backup systems out there these days, but none that are quite perfect. The closest I've found is `rdedup`[1], which may no longer be maintained. What I'd like in a backup solution is: - compressed - deduplicated - encrypted using asymmetric encryption, so that the encrypting machine doesn't need to know a password - durable (using par2 or directly supporting repository repair from an independent backup)/signed - composed of standard open source tools so that if the backup software goes away, everything can still be retrieved - supports differing upstream data hosting providers - open source There's lots of things that fill most of those requirements, but none that tick all the boxes. - rdiff-backup does all of the above except deduplication; it's full + incremental which requires a management strategy - restic doesn't compress, doesn't use asymmetric encryption and doesn't use par2 or similar tools for durability - borg doesn't use asymmetric encryption and doesn't use par2/durability stuff; it's also pretty slow I know people call borg the "holy grail", but I think we're still a wee way off that emerging, personally -- even though I do really like (and use!) borg. [1]: https://github.com/dpc/rdedup https://github.com/dpc/rdedup
- cookiecaper 7y agoYeah, I've been searching for a great general archiver for a long time. I tried borgbackup a couple of years ago and immediately hit a handful of issues that put me off, though I can't really recall the specific technical details clearly (I'm vaguely recollecting something about incompatible block sizes). Whatever the details were, I came away with the distinct impression that the borgbackup developers didn't really respect the gravity of archived records and long-term storage. While that's probably not a totally fair conclusion from a one-shot use, in my defense, I'll offer up the latest version of their changelog [0], where: * the first thing listed is an apparently serious data corruption bug that lived through several stable releases * the second thing listed is an apparently-very-serious security vulnerability ("a flaw in the cryptographic authentication scheme used in Borg allowed an attacker to spoof the manifest ...") * the third thing listed is another data corruption bug titled "Pre-1.0.9 data loss" * the fourth thing listed is another data corruption bug titled "Pre-1.0.4 potential repo corruption" Note these are all post-1.0 versions. To be frank, I dare not scroll further. Users are depending on this software to safeguard important files with the assumption that it will be able to reproduce them bit-for-bit-intact some years down the road. Any long-term storage software requires developers with a fanatical devotion to compatibility, longevity, and integrity if it's ever going to be more than a toy. I hate to pile on open-source devs who're trying their hand at making software that a lot of people appreciate, but overall, it's hard for me to say I regret the choice to pass it up and stick to combinations of ZFS, rsync, and the trusty old tarball. [0] https://github.com/borgbackup/borg/commit/75dcf9356334188276d095d818e22cb4b437a456 https://github.com/borgbackup/borg/commit/75dcf9356334188276...
- bloopernova 7y agoBorg backup is amazing. I've been using it for years now, backing up a few terabytes of data from a few dozen VMs. The dedupe is downright magical. We've been able to remain super frugal on the storage allocation for backups solely because of how wonderful its dedupe is. Restores are also really nice and easy since they are just a FUSE mount. If you have a Linux host or hosts, I can wholeheartedly recommend borg. It's elegant, robust, and fast. And open source.
- BlackLotus89 7y agoI benchmarked borg and restics deduplication on a few datasets and restic was the winner (1-2 years ago). Did you do any comparisons with other deduplicating backup solutions? (Benchmarked the efficiency not the speed. Test data set was a few 100GB)
- bloopernova 7y agoWe were previously using Bacula, which was way too heavyweight for what we wanted. I found Borg after looking into Attic, and wasn't aware of Restic at that point. Compared to the Bacula and BackupExec, Borg was lightning fast and its disk usage was very frugal.
- ocdtrekkie 7y agoDoes it care about the underlying file systems? I have one Linux machine I need to backup a directory on, and dedupe would be a huge help on this one in particular, but I'm backing up to an SMB share that's mounted to a folder location.
- Filligree 7y agoNot generally, but I wonder if the locking will still work in your case.
- senotrusov 7y agoI use BorgBackup to make a local backup on linux and mac machines and rclone to upload that backup to the cloud. It took me some time to figure it all out. I wrote a script to not manually repeat configuration steps next time. Although it's quite opinionated it still grew to 600 lines. Feel free to check it out, maybe it can help someone https://github.com/senotrusov/backup-script https://github.com/senotrusov/backup-script
- albertzeyer 7y agoI'm still not totally happy with most of the backup solutions, or maybe I want too many features all at once (sth like Perkeep). Although, otherwise, if the tools are simple, I have to use multiple tools to cover all the features, and there will be lots of overlap, which is maybe not too much of a problem actually. I collected a list here: https://github.com/albertz/wiki/blob/master/backup-software.md https://github.com/albertz/wiki/blob/master/backup-software....
- john37386 7y agoI'm using borg and I honestly like it. Not ready to only rely on it. I try to use the 3-2-1 principle of backup strategy and borg is really a space and bandwidth saver! My collection grew from few Gb to some Tb. It's already more than a year old and I was wondering whether it's better to start a fresh new repo every year or to let grow the original one until it reaches a certain size? Any recommendations from ppl that used it for +2 years?
- hikarudo 7y agoBorgBackup is great. One limitation that isn't mentioned often is that when doing anything with your borg repo, RAM use increases with the number of files you have backed up. In my case I had 15 million files, and mounting the repo took quite a bit of time (minutes) and used 11GB of RAM. Restic also has the same issue.
- patchtopic 7y agoHow does this compare against S3QL? Does it do multithreaded compression when backing up? So far S3QL is the least worst of all these deduplicating/compressing/encrypting backup solutions I have tried, but I havent tried borgbackup. Despite it's stated focus on cloud object storage, S3QL also works great on NFS and local filesystems as a target as well.. and sshfs..
- StreamBright 7y agoHow does it compare against tarsnap? https://www.tarsnap.com https://www.tarsnap.com
- croon 7y agoIs that $1/4GB/month? Plus bandwidth at the same cost on top of that? That seems wildly expensive.
- dmd 7y agoIn my testing (early 2019), NONE of restic, rclone, borg, duplicity, or tarsnap was able to handle anything other than hobbyist workloads. restic fell over hard at around 100 terabytes; the others at around 500. I'm backing up a little over 3 petabytes. I use Bacula. It's awful, but I haven't found anything else that can deal with that kind of volume.
- zmix 7y ago> I use Bacula. Did you test 'Burp'[1]? [1] https://burp.grke.org/why.html https://burp.grke.org/why.html
- JeremyNT 7y agoWhen I was backing up several 100 tb, I tried every open source option at the time and found them all lacking. What ultimately worked? Plain old rsync over ssh, to a zfs pool with snapshots and compression. As far as I could figure, the only notable downside of this is that the storage device must be trusted, since it has access to all of the data, and that you effectively needed root permissions on the storage you're copying to for filesystem permissions which makes a multi tenant backup server cumbersome (you could chroot or use containers or something but these solutions can become fiddly, e.g. running multiple instances of ssh on nonstandard ports to enable multitenancy).
- jmiserez 7y agoDoesn't rsync also slow to a crawl if there are too many files, due to memory requirements? Is there a way around that? EDIT: Ah I see rsync 3.0.0 (released in 2008) fixed this issue. Maybe I was on an old version.
- dmd 7y agoI've been very tempted to dump bacula and do that, especially since my main disk-based storage is an Oracle ZFS appliance. But I also do backups to tape (LTO-8, in a Storagetek library), and I do like that Bacula handles that for me.
- aleph- 7y ago
- dano 7y agoHas anyone done a pricing comparison between borgbase, rsync.net, AWS S3, and Wasabi for offsite borgbackup storage?
- rsync 7y agoWe try to stay current and competitive with pricing - currently at 1.5 cents/GB/month for the discounted, "no support"[1] "borg accounts": https://www.rsync.net/products/borg.html https://www.rsync.net/products/borg.html What is s3 these days ? 2.x cents ? Plus traffic ? We don't charge for traffic/usage/bandiwdth in any way ... [1] You do get technical support, just not specific support for setting up your borg backups, which can be fairly complicated ...
- frio 7y agoI (sadly) moved from you guys to Backblaze, as they're down at $0.005 (ie. 0.5 cents) per GB. They will charge me (1 cent/GB) if I have to restore the backup, but this is my extreme off-site everything-blew-up-including-the-backups-closer-to-me backup, so, hopefully that won't eventuate.
- rsync 7y agoWe will always be more expensive than B2, Wasabi, et. al. You're not ever going to get immediate, personal technical support from a UNIX engineer at those services like you do at rsync.net.
- deleted 7y ago[deleted]
- frio 7y agoFair enough. I still use and like your service for a second off-site backup of ~40GB of very very important stuff, but was unable to ignore the cost savings for bulk data.
- m3nu 7y agoI offer dedicated Borg hosting at BorgBase.com[1] from $5/TB. As opposed to normal SFTP-based backup services, every backup repo is fully isolated. This allowed to add features, like append-only mode and monitoring for stales backups. We have also developed a Qt-based desktop client[2] that runs in the system tray and makes it easier to browse archives or do restores. For headless deployments, I highly recommend Dan's Borgmatic[3]. You could deploy it all together with our Ansible role[4]. 1: https://www.borgbase.com https://www.borgbase.com 2: https://vorta.borgbase.com https://vorta.borgbase.com 3: https://torsion.org/borgmatic/ https://torsion.org/borgmatic/ 4: https://github.com/borgbase/ansible-role-borgbackup https://github.com/borgbase/ansible-role-borgbackup
- rezgi 7y agoI use borg extensively as well. One thing I haven't found a good solution for yet is monitoring. How do you all keep track of whether your backups succeeded? I'd like to receive an email if a scheduled backup didn't run. The only thing I have for now is rsync's feature where they warn you if your data hasn't changed by X kb in the last Y hours/days but I find this lacking because multiple machines write to my rsync account. It'll only warn me if none made any change but I'd never know if only a few failed. Same thing if there is nothing new to backup, I get an email from rsync.net but I don't know if every backup job failed or there is just no changes.