aosus / hyper-aosus

previous server for Aosus, powered by docker-compose gitops!
https://aosus.org
1 stars 0 forks source link

Setup Backups #21

Open FarisZR opened 1 year ago

FarisZR commented 1 year ago

We need to set up backups for aosus. The choice is basically between Duplicati and autorestic. Autorestic seems nice, and is easy to integrate into our Gitops workflow, but the developer isn't very active https://github.com/cupcakearmy/autorestic/pull/172, and the project lacks a few things.

Duplicati has a simple UI, easy to use, and has all the feature we need, including a smart backup retention method, keeping a copy from every day for a week, then a copy of every week for a month and so on.

However, there are many comments online talking about Duplicati's unreliability, which disastrous in a Backup solution. It also doesn't support multi-target backups. And because it's mostly managed in UI, it isn't very gitops friendly, unless we manage it using the CLi.

FarisZR commented 1 year ago

We are going to go with Duplicati. And since we are going to be backing up photos anyway, we might as well use object storage as a CDN. Discourse CDN using Cloudflare R2 is live, just waiting a couple of days to make sure its stable, then im going to run migrate_to_s3.

FarisZR commented 1 year ago

Another option: https://github.com/borgmatic-collective/borgmatic

The main issue with Borg is it only supports SSH endpoints, no support for S3 or B2 or any other kind of backup storage.

FarisZR commented 1 year ago

Ok i think I have a final plan:

Everything is going to use docker of course

https://hub.docker.com/r/b3vis/borgmatic/ https://hub.docker.com/r/modem7/borgmatic-docker/