galaktika-solutions / gStack

A Docker based Django-Postgres-Nginx boilerplate
0 stars 3 forks source link

backup task #36

Open richardbann opened 5 years ago

richardbann commented 5 years ago

A new task that does the backup. Frequency and backup retention should be configurable in .env

richardbann commented 5 years ago

The tricky part of this is the ownership of the process. Backup must have permissions to change the ownership and mode of created backup files. On the other hand we want emails when the backup fails (maybe on success also). The send mail function will call django, but running django as root in dev will create a bunch of __pycache__ dirs.