document how to take a Db snapshot

This commit is contained in:
forest 2021-02-15 17:42:32 -06:00
parent e9d6230c69
commit 5892b48867

View File

@ -56,15 +56,9 @@ Run the app in gunicorn:
pipenv run gunicorn --bind 127.0.0.1:5000 app:app pipenv run gunicorn --bind 127.0.0.1:5000 app:app
``` ```
## how to view the logs on the deployed system ## how to view the logs on the database server (legion.cyberia.club)
application logs: `sudo -u postgres pg_dump capsul-flask | gzip -9 > capsul-backup-2021-02-15.gz`
`journalctl -u capsul-flask --since -1w`
scheduled task logs:
`tail -n100 /var/log/capsul-flask.log`
----- -----