From 5892b48867c7e7f1f3f6dd8ad301856ed13c5b20 Mon Sep 17 00:00:00 2001 From: forest Date: Mon, 15 Feb 2021 17:42:32 -0600 Subject: [PATCH] document how to take a Db snapshot --- README.md | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index a8feeac..c5496e8 100644 --- a/README.md +++ b/README.md @@ -56,15 +56,9 @@ Run the app in gunicorn: 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: - -`journalctl -u capsul-flask --since -1w` - -scheduled task logs: - -`tail -n100 /var/log/capsul-flask.log` +`sudo -u postgres pg_dump capsul-flask | gzip -9 > capsul-backup-2021-02-15.gz` -----