Skip to content

Commit 8689e2d

Browse files
committed
Actually run backup rotation in [email protected]
Dry run example: ```shell Dry run. No changes will be made. Used space: 30 files, 133682908 bytes Freed space: 34 files, 151342898 bytes ```
1 parent 18762c1 commit 8689e2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roles/postgres/templates/[email protected]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ Group = postgres
99
WorkingDirectory = {{ postgres_backups_dir }}
1010
ExecStartPre = +/usr/bin/chown postgres:postgres {{ postgres_backups_dir }}
1111
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"
12-
ExecStartPost = /usr/bin/python3 /usr/local/bin/rotate.py --keep 30 --dir {{ postgres_backups_dir }}
12+
ExecStartPost = /usr/bin/python3 /usr/local/bin/rotate.py --no-dry-run --keep 30 --dir {{ postgres_backups_dir }}

0 commit comments

Comments
 (0)