Skip to content

Commit

Permalink
fix(postgres): Add --inserts option to the pg_dumpall
Browse files Browse the repository at this point in the history
To avoid `invalid command \N` error with `psql`.
  • Loading branch information
5ouma committed Sep 27, 2024
1 parent 4c2c1af commit ef87620
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion immich/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ services:
healthcheck:
test: pg_isready -d '$DB_DATABASE_NAME' -U '$DB_USERNAME' || exit 1
labels:
docker-volume-backup.archive-pre: pg_dumpall -l '$DB_DATABASE_NAME' -U '$DB_USERNAME' -f /tmp/backup/immich.sql -c --if-exists
docker-volume-backup.archive-pre: pg_dumpall -l '$DB_DATABASE_NAME' -U '$DB_USERNAME' -f /tmp/backup/immich.sql -c --if-exists --inserts
restart: always

redis:
Expand Down
2 changes: 1 addition & 1 deletion misskey/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ services:
healthcheck:
test: pg_isready -d '$DB_DATABASE_NAME' -U '$DB_USERNAME' || exit 1
labels:
docker-volume-backup.archive-pre: pg_dumpall -l '$DB_DATABASE_NAME' -U '$DB_USERNAME' -f /tmp/backup/misskey.sql -c --if-exists
docker-volume-backup.archive-pre: pg_dumpall -l '$DB_DATABASE_NAME' -U '$DB_USERNAME' -f /tmp/backup/misskey.sql -c --if-exists --inserts
restart: always

redis:
Expand Down
2 changes: 1 addition & 1 deletion speedtest-tracker/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ services:
healthcheck:
test: pg_isready -d '$DB_DATABASE_NAME' -U '$DB_USERNAME' || exit 1
labels:
docker-volume-backup.archive-pre: pg_dumpall -l '$DB_DATABASE_NAME' -U '$DB_USERNAME' -f /tmp/backup/speedtest-tracker.sql -c --if-exists
docker-volume-backup.archive-pre: pg_dumpall -l '$DB_DATABASE_NAME' -U '$DB_USERNAME' -f /tmp/backup/speedtest-tracker.sql -c --if-exists --inserts
restart: always

backup:
Expand Down

0 comments on commit ef87620

Please sign in to comment.