mirror of
https://git.tt-rss.org/fox/ttrss-docker-compose
synced 2025-06-08 02:19:52 +02:00
Update 'Home'
parent
bf0a96e115
commit
d8519da25f
1 changed files with 2 additions and 2 deletions
4
Home.md
4
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`
|
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`
|
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. 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 $DB_USER $DB_NAME`
|
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:
|
Alternatively, if you want to initiate backups from the host, you can use something like this:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue