suggest remote backup storage options?
- http://www.rsync.net/products/attic.html (ssh account with borg, managed, storage on zfs raidz3)
- https://www.time4vps.eu/pricing/ "High Volume" tab (self-managed vps, storage on 12 disk raid6)
- https://www.kimsufi.com/de/server.xml e.g. KS-2E (self-managed root server, single disk)
- amazon clouddrive together with http://rclone.org/ (needs local borg backup first)
After we collected some options, this ticket could be closed by moving this to a section on the community repo link list.
Note: this should not get a complete list of server offers, but rather one of the more interesting ones concerning value/price and/or ease-of-use when used with borg.
All VPS based on KVM https://spartanhost.org/vps#storage https://backupsy.com/ https://buyvm.net/storage-vps/ https://hosthatch.com/storage-vps
@twink0r hmm, some of these don't seem that interesting (looking at price) when comparing to e.g. rsync.net. add some details?
https://www.hetzner.de/hosting/produktmatrix/storagebox-produktmatrix
rclone now has a mount option that mounts the backend as a FUSE filesystem. Theoretically one could just mount and backup directly into it, though at least for Amazon Drive, Amazon's "eventual consistency" stuff causes problems like files spontaneously disappearing after upload, only to reappear 30 seconds later (which is acceptable for an online cloud storage website, but not so much for a filesystem).
I was also thinking about the fact that many cloud providers theoretically offer "unlimited" storage, but throttle & have a limit in the fine print. According to an /r/DataHoarder thread it seems relatively safe to store one's backups on Amazon Drive, provided you encrypt first.
And, of course, there are always small VPS instances from Azure, Google Cloud, AWS, Vultr, etc. which can just run borg serve on an SSH connection.
For me the most appealing offer regarding value/price is Amazon S3 Standard or Glacier for long term backups. And another plus is, that you can choose the location where your data is stored e.g. Frankfurt. I think this is a handy tool to access S3 to make backups with Borg.
I think these people have done an interesting thing: borg does the backups and then they use git-annex to keep an index of the chunks and manage syncing the chunks to remote storage (e.g. B2).
I think the first one has an especially good description, the second is more skimmable:
- http://zyradyl.github.io/2016/10/02/Collegi-Backup-System/
- https://juliank.wordpress.com/2016/05/11/backing-up-with-borg-and-git-annex/
If we can move away from VPS-type options, that eliminates a common cost. From what I can tell, using this combination opens up inexpensive storage options like B2. How do you think this approach stacks up against rclone?
It seems like #1795 can be closed in favor of this.
The posts about using borg with git-annex, rclone, etc. are good to know about, but not particularly special. They just describing normal borg use -- backing up to a local disk -- and then using another tool to copy files to cloud storage.
I think rsync.net is definitely worth highlighting. It is awesome that they provide such a customized borg offering. It would be nice to highlight some VPS's that have reasonably priced large storage options, though I don't know how often such a list would need to be curated. I don't see much value in highlighting making a local backup and copying it to the cloud since that can be done with pretty much any service. Maybe one day #102 will be closed and more cloud storage options will work better with borg.
EDIT: something like the rclone option that can mount remote storage locally would be interesting but the rclone mount seems unstable at the moment.
The day #102 closes will be a good day indeed.
Wow, #1795 has the same git-annex links as I included, and here I thought I'd uncovered two previously unknown gems.
However, I do think making a local backup and copying it to the cloud is hugely important: if done right it breaks us from needing a VPS (higher cost/complexity). But doing it right is the catch, just copying the files doesn't prevent something going wrong with the source repo that you're copying from. That's why the borg documentation talks about having redundant, independent repositories. This is where git-annex comes in, as an alternative to the VPS/rsync.net/SSH approach. As crazy as this sounds: it's version control for your backups. Keeping the backups version controlled allows the use of dumb, cloud storage. At least... that's what I'm thinking, but I welcome further consideration.
@DArtagan is thinking in the right direction here. Requiring a VPS adds expense and complication.
I'm on the tail end of a four-day deep dive into backup systems. (There were earlier dives, but no so deep.) The best solutions I have been able to find are HashBackup, Tarsnap, and Duplicati.
All are client-side only, in the sense that there is no need to read data back from the remote site when doing a backup. (This is actually not completely true, but very close.) In a nutshell, they do local book-keeping so that they can dedup, encrypt, and send only incremental changes to the remote store. So the first backup is the only painful one.
Each has its flaw too. Neither HashBackup or Tarsnap are open source. HashBackup, although free for the moment, may adopt a license in the $250/year range. Tarsnap is actually quite expensive at $0.25/GB/month stored and $0.25/GB of bandwidth. Duplicati goofed on fixed block offsets vs checksum-based offsets and the security model could be better. (Keep in mind the implications of a compromise of the backed up box.)
But the algorithms each use can make simple backups no more expensive than the cloud-storage and the bandwidth required to get them there. We're talking around $5US/TB/month. That price opens up a lot of doors. It's a big deal.
Borg is well positioned here. It could be the backup tool in fairly short order.
@enkore do you use hetzner storagebox yourself? which protocol / filesystem?
I haven't rented servers in a while. Someone told me they use it with iirc sshfs or sambda.
I am a new user (~4 days of usage) of BorgBackup. After reading this thread I started to using B2 (BackBlaze's S3) as an offsite backup. I have to admit I am really enjoying using B2 -- much lower price than S3/Glacier, reasonable daily free tier usage quota, and rather satisfying uploading speed.
Here's my setup (complies with BackBlaze's 3-2-1 backup strategy):
- I have a HP Gen8 microserver with 128 SSD and 2 TB + 4 TB HDD. (JBOD, with mergerfs for painless "unionfs-like" access);
- A systemd timer on my laptop runs borgmatic daily, backing up
/homeand/etcto the home server via SSH; - From the home server,
rcloneuploads the Borg repo to B2. Because Borg never "modifies" a data file (it just "creates" or "deletes" one), it's rather safe even if aborg createis in progress when arclone syncjob is running.
Note that the current version of rclone uses a new sync method that exhausts your daily free API calls quota quickly if you have a lot of directories. With Borg repo, however, this does not pose an issue, since a Borg repo has very few directories.
I will experiment with rclone sync and rclone mount. My reservations regarding rclone sync and git annex style options is that for local backup I prefer a plain copy of the files with some kind of snapshot system because that is the easiest to access, so making a local borg backup and then copying it to the cloud means I need to have two local backups if I keep my file system backup, though maybe having an extra backup is a good thing.
S3 Compatible would open up a lot of alternatives, including using minio as a backend.
Edit: as well as Wasabi
@wzyboy Have you tested restores and how that would work in your case?
I have the same setup and use Backblaze, but not with borg (yet) and I wondered what happens, say if your local repository becomes corrupted, can rclone just restore the broken parts from your local copy?
I am trying to minimise the download costs from B2 if I have a failure of my local repo.
@mannp Rclone only copies necessary data whenever possible. Say if 10% of your local backup is corrupted, only 10% data is needed to be downloaded from B2 to repair your local backup.
In desperate situations, you can even rclone mount your B2 bucket and borg mount on top of that. The performance of stacked FUSE might be terrible, though.
@wzyboy ok thanks for that; yes I assume it would only copy what was necessary, but wondered if those files were copied back, than borg would be able to recover. I assume it would if the files were restored the same. Not tried though..
Do you try and restrict the B2 transactions, so they remain within your daily allowance, with --fast-list or the like options?
Do you mind sharing your rclone command line?
Good point, I will try the mount, but was always concerned about how many transactions a mount would incur... have you tried it?
Thanks
@mannp
ok thanks for that; yes I assume it would only copy what was necessary, but wondered if those files were copied back, than borg would be able to recover. I assume it would if the files were restored the same. Not tried though..
rclone works bi-directionally.
Do you try and restrict the B2 transactions, so they remain within your daily allowance, with --fast-list or the like options?
No. I have never exceeded my daily transaction quota.
Do you mind sharing your rclone command line?
rclone -v sync ${REPO} b2:${BUCKET}
Good point, I will try the mount, but was always concerned about how many transactions a mount would incur... have you tried it?
I suppose in a desperate situation you would not care about how much transaction fee you would pay BackBlaze :-)
@wzyboy Ok cool, thanks for taking the time to respond 👍
No command line extras at all, ok fair enough, thanks again.