diff --git a/README.md b/README.md index e35e98b..bec7b82 100644 --- a/README.md +++ b/README.md @@ -298,6 +298,7 @@ If these are set and no other defaults or variables are set explicitly, they wil | Variable | Description | Default | `_FILE` | | -------------------------------- | --------------------------------------------------------------------------------------------------------- | ------- | ------- | | `DEFAULT_AUTH` | (Optional) Authentication Database | | x | +| `DEFAULT_BACKUP_GLOBALS` | Backup Globals as part of backup procedure | | | | `DEFAULT_EXTRA_BACKUP_OPTS` | Pass extra arguments to the backup command only, add them here e.g. `--extra-command` | | | | `DEFAULT_EXTRA_ENUMERATION_OPTS` | Pass extra arguments to the database enumeration command only, add them here e.g. `--extra-command` | | | | `DEFAULT_EXTRA_OPTS` | Pass extra arguments to the backup and database enumeration command, add them here e.g. `--extra-command` | | | @@ -562,6 +563,7 @@ Otherwise, override them per backup job. Additional backup jobs can be scheduled | Variable | Description | Default | `_FILE` | | ----------------------------- | --------------------------------------------------------------------------------------------------------- | ------- | ------- | | `DB01_AUTH` | (Optional) Authentication Database | | | +| `DB01_BACKUP_GLOBALS` | Backup Globals after backing up database (forces `TRUE` if `_NAME=ALL``) | `FALSE` | | | `DB01_EXTRA_OPTS` | Pass extra arguments to the backup and database enumeration command, add them here e.g. `--extra-command` | | | | `DB01_EXTRA_BACKUP_OPTS` | Pass extra arguments to the backup command only, add them here e.g. `--extra-command` | | | | `DB01_EXTRA_ENUMERATION_OPTS` | Pass extra arguments to the database enumeration command only, add them here e.g. `--extra-command` | | | diff --git a/install/assets/functions/10-db-backup b/install/assets/functions/10-db-backup index e88bf83..87206cf 100644 --- a/install/assets/functions/10-db-backup +++ b/install/assets/functions/10-db-backup @@ -167,6 +167,7 @@ bootstrap_variables() { transform_backup_instance_variable "${backup_instance_number}" AUTH backup_job_db_auth transform_backup_instance_variable "${backup_instance_number}" BACKUP_BEGIN backup_job_backup_begin transform_backup_instance_variable "${backup_instance_number}" BACKUP_INTERVAL backup_job_backup_interval + transform_backup_instance_variable "${backup_instance_number}" BACKUP_GLOBALS backup_job_backup_pgsql_globals transform_backup_instance_variable "${backup_instance_number}" BACKUP_LOCATION backup_job_backup_location transform_backup_instance_variable "${backup_instance_number}" BLACKOUT_BEGIN backup_job_snapshot_blackout_start transform_backup_instance_variable "${backup_instance_number}" BLACKOUT_END backup_job_snapshot_blackout_finish