... | ... | @@ -50,6 +50,19 @@ Alternatively you can create a file called `.env` and write those variables in i |
|
|
When sending emails we don't have access to the request, which means we don't know on which domain to generate urls for. You can set it up here: /admin/sites/site/.
|
|
|
It may become a build option at some point.
|
|
|
|
|
|
### backing up the database:
|
|
|
|
|
|
For example to do it everyday at 3am you could add in your crontab:
|
|
|
|
|
|
0 3 * * * docker exec -u postgres escriptorium_db_1 pg_dump -Fc escriptorium > /path/to/backups/db-$(date +"\%Y\%m\%d-\%H\%M").dump
|
|
|
|
|
|
In case you changed $POSTGRES_USER, $POSTGRES_DB make sure to change them accordingly, since cron doesn't have access to those.
|
|
|
|
|
|
And send it away a while later:
|
|
|
|
|
|
0 4 * * * rsync -r /path/to/backups/ distantuser@distantserver:/distant/path/to/backups
|
|
|
|
|
|
|
|
|
### Using a gpu
|
|
|
|
|
|
First make sure to have a supported distribution [here](https://nvidia.github.io/nvidia-docker/).
|
... | ... | |