# Managed by Ansible (deploy/ansible). # Daily full pgBackRest base backup for the payments/game database. Runs pgBackRest # inside the postgres container (where the repository configuration and PGDATA live); # the continuous WAL between base backups is handled by the container's archive_command. # Installed only when pitr_enabled is set (see deploy/ansible/group_vars/all.yml). [Unit] Description=pgBackRest full base backup (scrabble) After=docker.service Requires=docker.service [Service] Type=oneshot # docker exec runs as the image's postgres user and inherits the container's PGBACKREST_* # environment (the S3 repository + cipher), so no repository config is needed on the host. ExecStart=/usr/bin/docker exec scrabble-postgres pgbackrest --stanza=scrabble --type=full backup