forked from evolix/evocheck
IS_POSTGRES_BACKUP: look for compressed backup too
This commit is contained in:
parent
e3778343a5
commit
3f65cdafc6
|
@ -9,6 +9,7 @@ and this project **does not adhere to [Semantic Versioning](http://semver.org/sp
|
|||
|
||||
* IS_EVOBACKUP_EXCLUDE_MOUNT: exclude disabled backup scripts
|
||||
* IS_DUPLICATE_FS_LABEL: disable blkid cache
|
||||
* IS_POSTGRES_BACKUP: look for compressed backup too
|
||||
|
||||
### Deprecated
|
||||
|
||||
|
|
|
@ -885,7 +885,7 @@ check_postgres_backup() {
|
|||
if is_installed "postgresql-9*"; then
|
||||
# If you use something like barman, you should disable this check
|
||||
# You could change the default path in /etc/evocheck.cf
|
||||
POSTGRES_BACKUP_PATH=${POSTGRES_BACKUP_PATH:-"/home/backup/pg.dump.bak"}
|
||||
POSTGRES_BACKUP_PATH=${POSTGRES_BACKUP_PATH:-"/home/backup/pg.dump.bak*"}
|
||||
test -f "$POSTGRES_BACKUP_PATH" || failed "IS_POSTGRES_BACKUP" "PostgreSQL dump is missing (${POSTGRES_BACKUP_PATH})"
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue