Skip to content

Quick backup script.

s2532743 requested to merge backup into master

I added a quick backup script, which backs up the following:

  • All postgres tables
  • The SSL certificate
  • The environment variables

There are a lot of reasons that this script is not optimal:

  • It relies on a bunch of external variables to be exactly right. (like the db user)
  • It assumes the directory structure although it could change.
  • It doesn't lock anything, meaning that writes could mess it up.
  • It doesn't encrypt the backup yet (although I'm not sure that this script is responsible for this)
  • It doesn't log anything
  • I'm not sure whether we back up the right files. An argument could be made that we need to backup the entire docker containers. This depends on how we update however.
Edited by s2532743

Merge request reports