Skip to content

Conversation

@b-n
Copy link
Collaborator

@b-n b-n commented Oct 21, 2025

Add some backup cronjobs for nocodb and docmost!

These are kinda rough/ready backups. Both nocodb and docmost have a storage directory (for images etc), and also of course data in their respective database.

How does the restore process work? Yes
Where are the backups stored? On a hetzner storage box (another ~3.5 eur/month)
How can we extract the backups if we ever need them? At present, I'm the only one with the keys here. I'll do some thinking about the best way to share this. (see below)
Why did we need new containers? I couldn't find any open/maintained images that had both psql + ssh. It would be nice to not have to manage some containers, but not the end of the world. Could also manage this automagically with github actions in theory.

Storage box file structure:

|   # root user (me)
\- k3s    # sub-1
   |- nocodb   # sub-2
   |   \- backups
   |       |- pg_backup_<date>.tar.gz
   |       \- file_backup_<date>.tar.gz
   \- docmost   # sub-3
       \- backups
           |- pg_backup_<date>.tar.gz
           \- file_backup_<date>.tar.gz

☝️ Each individual service (docmost/nocodb) has it's own set of ssh keys to access the storage box. This means if one service gets pwned, at least it doesn't pwn the other. The good news is that I had some foresight to have a separate account for the k3s directory, which means we could create some ssh keys there, and share them in the keepass for emergency access etc.

@netlify
Copy link

netlify bot commented Oct 21, 2025

Deploy Preview for twc-site-nl ready!

Name Link
🔨 Latest commit e8768b6
🔍 Latest deploy log https://app.netlify.com/projects/twc-site-nl/deploys/68f78afe3ce1220008008123
😎 Deploy Preview https://deploy-preview-152--twc-site-nl.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@b-n b-n merged commit 2124902 into main Oct 28, 2025
6 checks passed
@b-n b-n deleted the backups branch October 28, 2025 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants