Tarsnap – cleaning up old backups
dan.langille.org
dan.langille.org
Also your method might be much cheaper, but tarsnap is still inexpensive for most use cases. So how much actual money is saved vs. the effort level put in?
By relying on rsync.net's automated ZFS snapshots I get the same or similar protection compared to Tarsnaps's write-only keys.
For my personal use case cost wasn't an issue, though. It's less than 10 GB of data stored.
It wasn't about price for me either. On the few occasions I actually had to restore some files, Tarsnap was glacially slow. That made me nervous if I ever hit a situation where I had to do a full restore.
Like you say, there's the quality-of-life features that I now don't have to script. Pruning, missed backup alerts, monthly reports are all things I've realized were sorely missing from my Tarsnap experience.
I don't know the architecture of Borg storage too closely, but I assume that since it is all end-to-end encrypted, Borgbase cannot do the pruning for you.
If you use append-only keys, they can't (destructively) prune, you have to use regular keys to do that.
I'll agree that tarsnap is still 'simpler' since I guess maybe it takes 15 mins to set up versus an hour, but I'm still surprised that someone would consider the 45 minutes saved to be worth possibly hundreds/thousands of extra dollars in backup costs.
>Also your method might be much cheaper, but tarsnap is still very inexpensive for most use cases. So how much actual money is saved vs. the effort level put in?
What are the use cases you use tarsnap for? Is tarsnap only used for small amounts of data or something? I guess I just cannot get over the hurdle that tarsnap seems obscenely priced given the cost of storage these days. You can get 2TB of storage for ~$120/yr on something like Dropbox/B2/Google Drive/etc. That same 2TB would cost six thousand dollars a year on tarsnap!!
Setting up restic/duplicacy/kopia/etc is easy and you get to choose your storage from wide array of choices that's pretty much 1/10 the price. Does tarsnap even have retention rules?
Just because someone behind may be famous, charging 10 times for something that's not even better is absurd and should be seen as an obsolete service when there are a dozen others with competitive pricing.
I see you're happy to pay $100 for something I pay $10 because making a cron job is tough for you.
This is against HN rules FYI. No reason for this kind of trolling/goading. My use case doesn't even come close to matching that cost anyway.
I've learned that the ultimate test of documentation, training, scripts, and good services is "can I go on an undisturbed vacation" when the less experienced people have to run the ship.
I describe the tarsnap tool as being "principled" because it draws a pretty tight boundary of what functionality is in-scope. As a result, I think most real "backup" scenarios will require some kind of tooling to be used as a wrapper (e.g. GFS or even simpler retention scheduling).
I was a Tarsnap user for some time, but in the end I've found that using Duplicati with B2 is actually easier than Tarsnapper and significantly less expensive, as my usage totals a bit over 7TB - not affordable for me with Tarsnap. As a result I haven't been recommending Tarsnap for some time.
I do think it's important to emphasize that "B2" or "S3" does not necessarily mean doing scripting or whatever yourself - probably the biggest advantage of choosing one of these commodity storage services is that they are supported by a wide variety of open-source and commercial tools, generally with much a much more sophisticated featureset than the tarnsap tool. Duplicati as mentioned is a more GUI-centric (web interface) tool with block dedup and retention management for .NET/Mono. "rclone" is a command-line tool for Linux that's fairly similar in usage to the tarsnap tool but also has additional features. Both can be set to encrypt backups before uploading. Both support either S3 or B2 (and I assume also Google Cloud Storage, Azure Storage, etc).
tarsnap --list-archives | prunef | xargs tarsnap -d
GNU xargs: Normally runs the command at least once, but you can turn that off with "-r" or "--no-run-if-empty".
OpenBSD xargs: Like GNU, but only has the short "-r" version of the flag.
FreeBSD xargs: Never runs the command if the input is empty, has "-r" (but not "--no-run-if-empty") as a no-op compatibility flag for GNU.
macOS xargs: Never runs the command if the input is empty (has no "-r" or "--no-run-if-empty" flags).
Funny I just found out through yesterday's thread about top HN comments: https://news.ycombinator.com/item?id=24531972