File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -76,6 +76,8 @@ services:
7676 environment :
7777 RESTIC_BACKUP_SOURCES : /data
7878 RESTIC_BACKUP_ARGS : --tag immich --exclude /data/thumbs --exclude /data/encoded-video --exclude /data/backups
79+ PRE_COMMANDS : docker exec immich_postgres pg_dumpall -U postgres | gzip > /data/db-dump.sql.gz
80+ POST_COMMANDS_SUCCESS : rm -f /data/db-dump.sql.gz
7981 volumes :
8082 - ${IMMICH_UPLOAD_LOCATION}:/data
8183 - ${CONFIG_ROOT:-.}/immich/postgresql:/postgresql:ro
@@ -87,12 +89,6 @@ services:
8789 restart : always
8890 profiles :
8991 - immich-backup
90- command : >
91- sh -c '
92- export PRE_COMMANDS="docker exec immich_postgres pg_dumpall -U postgres | gzip > /data/db-dump.sql.gz";
93- export POST_COMMANDS_SUCCESS="rm -f /data/db-dump.sql.gz";
94- exec /entry.sh
95- '
9692
9793volumes :
9894 immich-model-cache :
You can’t perform that action at this time.
0 commit comments