Backup job – pg_dump_all (ssh)


Job details

Name: Backup job – pg_dump_all (ssh)
Platform: Postgres
Category: Maintenance
Description: Runs a backup of all the postgres databases on an instance using pg_dumpall through an ssh connection.
Long description: Runs a backup of all the postgres databases on an instance using pg_dumpall through an ssh connection.
Version: 0.4
Default schedule: 10 18 * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & databasetype=‘postgres’]/.[hasengine=‘YES’ & newer_than_ninetwo = ‘1′]

Parameters

Name Default value Description
backup directory CHANGE_THIS The directory where we put the backup files (absolute path).
database backup user postgres Username used to log onto postgres and run backup.
pg_dumpall executable /opt/PostgreSQL/10/bin/pg_dumpall Full filename and options for the pg_dumpall executable (with options if you have them)
backup filename postgres_full_backup.tar Backup file output filename

Job Summary

select bck_filename as "Backup file", backup_date as "Modified date", status as "Status" from dbw_backup_job_pg_dumpall_data order by backup_date desc;

Key Features and Operations

Dependencies and Error Handling

Backup Job Specifics

Parameter Name Description
Backup Directory Absolute path for where backup files are stored.
Database Backup User Username used for logging into PostgreSQL and performing backups.
PG Dumpall Executable Full path and options for the pg_dumpall utility used for backups.
Backup Filename Name of the file where the backup will be saved.

Implementation Details

This monitoring job is pivotal for maintaining the consistency and reliability of database backups in PostgreSQL environments, ensuring that operational data is protected against unforeseen circumstances through systematic, secure backup procedures.