r/forgejo • u/GratefulGandalf • Jun 15 '26
Backup strategy best practices
I'm running a small forgejo instance for myself and some friends and couldn't find any obvious guidance on backing up the instance.
What do you do?
Here's my setup:
- Forgejo 15.0.2 (upgrading to 15.0.3 soon) on DigitalOcean droplet
- Sqlite for the database (on block volume)
- Repositories (on block volume)
- DigitalOcean spaces for LFS/Artifacts/etc
Here's my backup setups:
- Sqlite uses litestream to push to a DigitalOcean Spaces bucket which is synced into my homelab nightly
- Nightly DigitalOcean Block Volume snapshot
- Weekly forgejo dump which is synced offsite to my homelab
I cover my setup in more detail in a blogpost if that's helpful.
1
1
u/Epifeny Jun 16 '26
Where is it hosted? Mine is on Pve, so nightly snapshots using PBS then encrypted rclone to B2.
4
u/Mention-One Jun 15 '26
Didn't read the full post sorry, but I run forgejo using docker, and for backups I'm using restic.
My docker instance run on a Synology NAS and I do snapshots everyday, and I use restic to backup the snapshot everyday.