Skip to content

Commit 7c446d2

Browse files
committed
rsnapshot_backup postgresql_skip_globals
1 parent 70f16bb commit 7c446d2

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

rsnapshot_backup/pillar.example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ rsnapshot_backup:
154154
#exec_after_dump: # optional, command to execute via ssh after dump, avoid using single and double quotes
155155
#pg_dump_args: # optional, pass additional arguments to pg_dump_args
156156
#pg_dump_filter: grep -v -e \"pg_dump.*: finished item\" -e \"pg_dump.*: creating\" -e \"pg_dump.*: executing\" -e \"pg_dump.*: last built-in\" -e \"pg_dump.*: reading\" -e \"pg_dump.*: identifying\" -e \"pg_dump.*: finding\" -e \"pg_dump.*: flagging\" -e \"pg_dump.*: saving\" -e \"pg_dump.*: dropping\" -e \"pg_dump.*: dumping\" -e \"pg_dump.*: running\" -e \"pg_dump.*: processing\" >&2 # optional, filter pg_dump output
157-
#postgresql_noclean: True # optional, remove --clean from pg dump
157+
#postgresql_noclean: True # optional, remove --clean from pg_dump predefined args
158+
#postgresql_skip_globals: True # optional, skip step of dumping globals via pg_dumpall --schema-only
158159
#postgresql_dump_dir: /var/backups/postgresql # optional, change default /var/backups/postgresql dump dir location
159160
#postgresql_dump_type: directory # optional, overrides default plain format with pipe to gz file dump type
160161
# recommended with 'pg_dump_args: --jobs=REASONABLE_NUMBER --compress=zstd' if zstd is supported by pg_dump version

rsnapshot_backup/update_config.sls

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ rsnapshot_backup_yaml:
8787
postgresql_noclean: {{ host_backups_item["postgresql_noclean"] }}
8888
{%- endif %}
8989
#
90+
{%- if "postgresql_skip_globals" in host_backups_item %}
91+
postgresql_skip_globals: {{ host_backups_item["postgresql_skip_globals"] }}
92+
{%- endif %}
93+
#
9094
{%- if "mysql_noevents" in host_backups_item %}
9195
mysql_noevents: {{ host_backups_item["mysql_noevents"] }}
9296
{%- endif %}

0 commit comments

Comments
 (0)