From d872e67c8ce62775c3a0a83671d271a6847b35de Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 7 Apr 2021 19:17:02 +0200 Subject: [PATCH] Another template that pertains to pgpool. --- templates/postgresql_wal_backup_and_removal.j2 | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 templates/postgresql_wal_backup_and_removal.j2 diff --git a/templates/postgresql_wal_backup_and_removal.j2 b/templates/postgresql_wal_backup_and_removal.j2 deleted file mode 100644 index 22d6454..0000000 --- a/templates/postgresql_wal_backup_and_removal.j2 +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -BASE_BACKUP_DIR={{ psql_base_backup_dir }} -WAL_ARCHIVES_LOG_DIR={{ psql_wal_archiving_log_dir }} -WAL_LATEST_BACKUP= - -# The base backup dir needs to be empty - -rm -f $BASE_BACKUP_DIR/* -pg_basebackup -F t -z -D $BASE_BACKUP_DIR - -cd $WAL_ARCHIVES_LOG_DIR -WAL_LATEST_BACKUP=$( /bin/ls -1tr *.backup | tail -1 ) -pg_archivecleanup $WAL_ARCHIVES_LOG_DIR $WAL_LATEST_BACKUP - -exit $? -