Open richardbann opened 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.
A new task that does the backup. Frequency and backup retention should be configurable in
.env