base: zzz_evobackup upstream release 22.03

This commit is contained in:
Jérémy Dubois 2022-03-25 18:09:08 +01:00
parent e8782227b2
commit eb96fd41b2
2 changed files with 9 additions and 5 deletions

View File

@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- accounts: use "evobsd_internal_group" for SSH authentication
- evocheck : imported version 22.03
- base: zzz_evobackup upstream release 22.03
### Fixed

View File

@ -20,7 +20,7 @@ set -u
##### Configuration ###################################################
VERSION="22.01"
VERSION="22.03"
# email adress for notifications
MAIL=jdoe@example.com
@ -191,6 +191,9 @@ if [ "${LOCAL_TASKS}" = "1" ]; then
# mkdir -p -m 700 ${LOCAL_BACKUP_DIR}/mysql/
# pt-show-grants --flush --no-header > ${LOCAL_BACKUP_DIR}/mysql/all_grants.sql
# Dump all variables
# mysql -A -e"SHOW GLOBAL VARIABLES;" > ${LOCAL_BACKUP_DIR}/MySQLCurrentSettings.txt
## example with SQL dump (schema only, no data) for each databases
# mkdir -p -m 700 ${LOCAL_BACKUP_DIR}/mysql/
# for i in $(mysql --defaults-extra-file=/etc/mysql/debian.cnf -P 3306 -e 'show databases' -s --skip-column-names \
@ -228,9 +231,9 @@ if [ "${LOCAL_TASKS}" = "1" ]; then
## PostgreSQL
## Purge previous dumps
# rm ${LOCAL_BACKUP_DIR}/pg.*.gz
# rm ${LOCAL_BACKUP_DIR}/pg-backup.tar
# rm ${LOCAL_BACKUP_DIR}/postgresql/*
# rm -rf ${LOCAL_BACKUP_DIR}/pg.*.gz
# rm -rf ${LOCAL_BACKUP_DIR}/pg-backup.tar
# rm -rf ${LOCAL_BACKUP_DIR}/postgresql/*
## example with pg_dumpall (warning: you need space in ~postgres)
# su - postgres -c "pg_dumpall > ~/pg.dump.bak"
# mv ~postgres/pg.dump.bak ${LOCAL_BACKUP_DIR}/
@ -364,7 +367,7 @@ if [ "${LOCAL_TASKS}" = "1" ]; then
fi
else
if [ -n "${backup_server_state_bin}" ]; then
${backup_server_state_bin} --force --backup-dir "${server_state_dir}"
${backup_server_state_bin} --etc --force --backup-dir "${server_state_dir}"
else
mkdir -p "${server_state_dir}"