mirror of
https://git.tt-rss.org/fox/ttrss-docker-compose
synced 2025-07-03 07:09:54 +02:00
Update page 'Home'
parent
8566fc7a08
commit
86c88b156d
1 changed files with 7 additions and 7 deletions
14
Home.md
14
Home.md
|
@ -94,17 +94,17 @@ You will need to set ``SELF_URL_PATH`` to a correct (i.e. visible from the outsi
|
|||
|
||||
Unless you have `backups` container disabled, stock configuration makes automatic tt-rss database backups once a week to a separate storage volume.
|
||||
|
||||
A process to restore from such backup would look similar to this:
|
||||
A process to restore from such backup would look like this:
|
||||
|
||||
1. Enter backups container shell: `docker-compose exec backups /bin/sh`
|
||||
2. Inside the container, find latest backup: `ls -t /backups/*.sql.gz`
|
||||
3. Restore the backup:
|
||||
|
||||
```sh
|
||||
$ docker-compose exec backups /bin/sh
|
||||
/ # ls /backups
|
||||
ttrss-backup-20200930.sql.gz
|
||||
...
|
||||
/ # zcat /backups/ttrss-backup-20200930.sql.gz | psql -h db -U $DB_USER $DB_NAME
|
||||
# zcat /backups/ttrss-backup-yyyymmdd.sql.gz | psql -h db -U $DB_USER $DB_NAME
|
||||
```
|
||||
|
||||
Alternatively, you can use something like this:
|
||||
Alternatively, if you want to initiate backups from the host, you can use something like this:
|
||||
|
||||
```sh
|
||||
source .env
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue