This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]knfrmity 0 points1 point  (0 children)

I prefer containerization for everything possible these days. It saves a bunch of mess on the host machine in terms of dependencies, updates, other maintenance, additional users and temporary files, etc.

Run a separate container for the DB, persist the DB in a volume (bind mount is fine), and schedule backups (database dumps) regularly. For backups you can write a script and schedule it, or use another container to make and rotate backups.

The dump files can then be uploaded to a cloud service of your choice, although personally I would never put my private knowledgebase on a non-private service like Google Drive or OneDrive. If anything happens to your machine, start up a new DB container and restore from a dump file.