Migrated to Docket from Git, and looking at adding a daily backup to outside of the container so the backup can be easily copied elsewhere.
I found https://git.tt-rss.org/fox/ttrss-docker-compose/wiki#backup-and-restore for running the backup which I think should be updated from the existing.
source .env
docker-compose exec db /bin/bash \
-c "export PGPASSWORD=$POSTGRES_PASSWORD \
&& pg_dump -U $POSTGRES_USER $POSTGRES_USER" \
| gzip -9 > backup.sql.gz
to the default names in .env
source .env
docker-compose exec db /bin/bash \
-c "export PGPASSWORD=$TTRSS_DB_PASS \
&& pg_dump -U $TTRSS_DB_USER $TTRSS_DB_NAME" \
| gzip -9 > backup.sql.gz
Apart from the database backup, a copy of the .env, and a copy of anything manually copied to a container (such as a 3rd party plugin etc.), is anything else required for a restore to a clean Dockeer deployment?