Skip to content

Commit 0eb44ad

Browse files
authored
cron: update the example commands for cron_jobs
1 parent 33aa4bb commit 0eb44ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vars/main.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ cron_jobs: []
437437
# day: "*"
438438
# month: "*"
439439
# weekday: "0"
440-
# job: "if [ "$(psql -tAXc 'select pg_is_in_recovery()')" = "f" ]; then pgbackrest --type=full --stanza={{ pgbackrest_stanza }} backup; fi"
440+
# job: "if [ $(psql -tAXc 'select pg_is_in_recovery()') = 'f' ]; then pgbackrest --type=full --stanza={{ pgbackrest_stanza }} backup; fi"
441441
# - name: "PgBackerest: Diff Backup"
442442
# file: /etc/cron.d/pgbackrest
443443
# user: "{{ patroni_superuser_username }}"
@@ -446,7 +446,7 @@ cron_jobs: []
446446
# day: "*"
447447
# month: "*"
448448
# weekday: "1-6"
449-
# job: "if [ "$(psql -tAXc 'select pg_is_in_recovery()')" = "f" ]; then pgbackrest --type=diff --stanza={{ pgbackrest_stanza }} backup; fi"
449+
# job: "if [ $(psql -tAXc 'select pg_is_in_recovery()') = 'f' ]; then pgbackrest --type=diff --stanza={{ pgbackrest_stanza }} backup; fi"
450450
# Example for walg
451451
# - name: "WAL-G: Create daily backup"
452452
# user: "{{ patroni_superuser_username }}"
@@ -456,7 +456,7 @@ cron_jobs: []
456456
# day: "*"
457457
# month: "*"
458458
# weekday: "*"
459-
# job: "[ '200' = $(curl -s -o /dev/null -w '\\%{http_code}' http://{{ inventory_hostname }}:8008) ] && /usr/local/bin/wal-g backup-push"
459+
# job: "[ '200' = $(curl -s -o /dev/null -w '\\%{http_code}' http://{{ inventory_hostname }}:8008) ] && wal-g backup-push"
460460

461461
# PITR mode (if patroni_cluster_bootstrap_method: "pgbackrest" or "wal-g"):
462462
# 1) The database cluster directory will be cleaned (for "wal-g") or overwritten (for "pgbackrest" --delta restore).

0 commit comments

Comments
 (0)