Backup-Lösung für einen kostenlosen Hosting-Anbieter

Hey all, long time no see :slight_smile: Used to be quite active here a few years ago.

Anyway, I’m the admin of a relatively small forum. Our backups clock in at under 1GB, and will likely stay that way for the next few years.

I want to set up backups with a cloud provider that’s not tied to my identity, so that I can share login details with other forum owners. This excludes Amazon S3, which is our current solution, tied to my Amazon account. Google Drive would also be a little problematic (would have to create a special account, which requires phone number validation nowadays). Sharing a folder might be another solution, but that would chew up my Google Drive quota.

So is there a free cloud provider for backups that Discourse supports? I’ve spent the last ~15 minutes searching through threads, and it appears most plugins but S3 are deprecated or broken :frowning: Happy to be wrong and pointed to a working solution.

Also, any ongoing work on building this into Discourse? Is it a lot more complicated than it seems to use Dropbox’s API and upload the latest backup file?

Why aren’t you looking at any S3 compatible service? There are many now..

Are they admins on your forum? You don’t need to share your S3 login details if that’s the case. They can download backups in the Admin → Backups. Discourse will generate a secure link to download directly from S3.

It should be a lot simpler to create plugins for different storage providers than it was before the rewrite of the backup storage backend. I guess there isn’t a high demand for anything else than S3, so nobody created a plugin yet.

You could run a Dropbox container that synced to Dropbox, or go old school and old school and rsync the files to some other location.

The idea is to have access to the backups off-site in case our hosting blows up. If Discourse could keep pushing the links to the latest backups somewhere (e.g. into a Google Sheet), that would be interesting.

I use Rclone with a cron job to move my backups to a non-S3 destination. Might be an option for you?

I use rsync to my machine every few days, that’s the best option for me for now while keeping the costs really down. I keep 3-5 backups online with Discourse and up to 15 locally (sometimes I forget to delete the old ones).

A totally free option is kinda difficult. You could have a script that runs in the Discourse server and copies the file from there to any other place (Google Drive, Dropbox) with their API and a Cronjob.

Other option is to use S3 or S3-alikes as DigitalOcean’s Spaces (5$/250GB)

Tatsächlich war es sehr einfach, dieser Anleitung zu folgen und Rclone einzurichten, um es mit einem geteilten Gmail/Google Drive-Konto zu nutzen, auf das unser Team Zugriff hat. 15 GB Speicherplatz sind mehr als ausreichend.

Die Verwendung des sync-Befehls von Rclone bedeutet, dass nur die aktuellen Backups auf Google Drive gespeichert werden. Das ist tatsächlich viel praktischer als das Standard- bzw. integrierte AWS-Plugin, da dieses alte Backups und Protokolldateien nicht löschte und ich mich gelegentlich bei AWS anmelden und sie manuell löschen musste.

Beachte, dass du vor rclone sync auch rclone cleanup ausführen musst, um den Papierkorb zu leeren. Andernfalls kann Google Drive den Speicherplatz erschöpfen, da Dateien im Papierkorb weiterhin auf das Kontingent angerechnet werden.

Nur zur Info: Es gibt eine Site-Einstellung namens s3 disable cleanup: Deaktiviert das Entfernen von Sicherungen aus S3, wenn sie lokal gelöscht werden.