(no title)
a20eac1d | 5 years ago
The hard drive of your server can fail at any time and when self hosting you are responsible for your backups.
This is giving me night terrors, especially when its on a cloud server and I don't have access to the hardware.
Currently, I'm running a cron task once per day executing a simple backup script that does the following:
Stop the Gitea container, copy the entire Gitea directory (including the docker-compose.yml and the data directory) to a backup folder, restart the container, sync that folder to a Backblaze bucket, delete the backup folder.
Restoring the backup is (should) be as easy as downloading the bucket from Backblaze and simply docker-composing it up.
I'm looking for other ideas advice that will help me sleep at night. Thanks!
LinuxBender|5 years ago
[0] - https://rsnapshot.org/
[1] - https://serverfault.com
[2] - https://linuxconfig.org/guide-to-rsnapshot-and-incremental-b...
hnlmorg|5 years ago
GuB-42|5 years ago
In fact you don't even need a server, just push/pull between your machines, a server just makes things more convenient.
hellcow|5 years ago
3np|5 years ago
For example:
Glusterfs Replicated 3 (1 arbiter/parity), put on top of zfs filesystems with checksumming.
Users/consuming services can Fuse mount over the network
Incremental backups of bricks (1 should be enough) to a mirror or spinning rust
Then all you need to worry about is offsite
If you really only need to solve for gitea, this is prob overkill but if you have more services putting stuff on disk it could be worth it. Works great for me.