We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a8b2356 + 976b4e4 commit e682fe4Copy full SHA for e682fe4
roles/postgres/templates/[email protected]
@@ -8,5 +8,5 @@ User = postgres
8
Group = postgres
9
WorkingDirectory = {{ postgres_backups_dir }}
10
ExecStartPre = +/usr/bin/chown postgres:postgres {{ postgres_backups_dir }}
11
-ExecStart = /usr/bin/bash -c "/usr/bin/pg_dump --compress=9 --no-owner --format=p --file=%i_$(TZ=UTC date +%%Y%%m%%d-%%H%%M%%S).sql.gz %i"
+ExecStart = /usr/bin/bash -c "/usr/bin/pg_dump --compress=9 --format=c --file=%i_$(TZ=UTC date +%%Y%%m%%d-%%H%%M%%S).pgc %i"
12
ExecStartPost = /usr/bin/python3 /usr/local/bin/rotate.py --no-dry-run --keep 30 --dir {{ postgres_backups_dir }}
0 commit comments