Backup from host (Documentation)

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?

i’ll update the wiki when i have some time. you can also mount backups volume on the host directly and use built-in automatic backups. personally i just backup docker hosts with volumes directory included.

can’t think of anything.