Backup check – WAL


Job details

Name: Backup check – WAL
Platform: Postgres
Category: Availability
Description: Checks that the WAL files have been backed up.
Long description: Checks that the WAL files have been backed up.
Version: 1.5
Default schedule: 19 * * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & databasetype=‘postgres’]/.[hasengine=‘YES’ & is_awsrds = ‘0′ & maj_version > ‘11′ ]

Parameters

Name Default value Description
alarm num 10 Will give an alarm if the number of WAL files in the pg_wal area exceeds this number.
warning num 4 Will give a warning if the number of WAL files in the pg_wal area exceeds this number.

Job Summary

SELECT setting FROM pg_settings WHERE name = 'archive_mode';
SELECT setting FROM pg_settings WHERE name = 'archive_command';
SELECT pg_ls_dir('pg_wal/');

Job Configuration Overview

Job Dependencies

Cleanup on Failure

drop procedure dbw_backup_wal_check(integer);
drop table dbw_backup_wal_check_data;

Implementation Details

Reporting Template

select bck_mode as "Archive mode", bck_command as "Command", num_wal_files as "Num WAL files" from dbw_backup_wal_check_data;

Significance of Job Installation and Maintenance