From d8519da25f97d83fcd9cb687a9f95af394f31f4b Mon Sep 17 00:00:00 2001 From: fox Date: Thu, 31 Mar 2022 16:34:06 +0300 Subject: [PATCH] Update 'Home' --- Home.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Home.md b/Home.md index 88f0d1c..4cb3665 100644 --- a/Home.md +++ b/Home.md @@ -291,8 +291,8 @@ A process to restore the database from such backup would look like this: 1. Enter `backups` container shell: `docker-compose exec backups /bin/sh` 2. Inside the container, locate and choose the backup file: `ls -t /backups/*.sql.gz` -3. Clear database (**THIS WOULD DELETE EVERYTHING IN THE DB**): `psql -h db -U $DB_USER $DB_NAME -e -c "drop schema public cascade; create schema public"` -3. Restore the backup: `zcat /backups/ttrss-backup-yyyymmdd.sql.gz | psql -h db -U $DB_USER $DB_NAME` +3. Clear database (**THIS WOULD DELETE EVERYTHING IN THE DB**): `psql -h db -U $TTRSS_DB_USER $TTRSS_DB_NAME -e -c "drop schema public cascade; create schema public"` +3. Restore the backup: `zcat /backups/ttrss-backup-yyyymmdd.sql.gz | psql -h db -U $TTRSS_DB_USER $TTRSS_DB_NAME` Alternatively, if you want to initiate backups from the host, you can use something like this: