base: zzz_evobackup upstream release 22.03
This commit is contained in:
parent
e8782227b2
commit
eb96fd41b2
|
@ -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
|
- accounts: use "evobsd_internal_group" for SSH authentication
|
||||||
- evocheck : imported version 22.03
|
- evocheck : imported version 22.03
|
||||||
|
- base: zzz_evobackup upstream release 22.03
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ set -u
|
||||||
|
|
||||||
##### Configuration ###################################################
|
##### Configuration ###################################################
|
||||||
|
|
||||||
VERSION="22.01"
|
VERSION="22.03"
|
||||||
|
|
||||||
# email adress for notifications
|
# email adress for notifications
|
||||||
MAIL=jdoe@example.com
|
MAIL=jdoe@example.com
|
||||||
|
@ -191,6 +191,9 @@ if [ "${LOCAL_TASKS}" = "1" ]; then
|
||||||
# mkdir -p -m 700 ${LOCAL_BACKUP_DIR}/mysql/
|
# mkdir -p -m 700 ${LOCAL_BACKUP_DIR}/mysql/
|
||||||
# pt-show-grants --flush --no-header > ${LOCAL_BACKUP_DIR}/mysql/all_grants.sql
|
# 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
|
## example with SQL dump (schema only, no data) for each databases
|
||||||
# mkdir -p -m 700 ${LOCAL_BACKUP_DIR}/mysql/
|
# 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 \
|
# 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
|
## PostgreSQL
|
||||||
|
|
||||||
## Purge previous dumps
|
## Purge previous dumps
|
||||||
# rm ${LOCAL_BACKUP_DIR}/pg.*.gz
|
# rm -rf ${LOCAL_BACKUP_DIR}/pg.*.gz
|
||||||
# rm ${LOCAL_BACKUP_DIR}/pg-backup.tar
|
# rm -rf ${LOCAL_BACKUP_DIR}/pg-backup.tar
|
||||||
# rm ${LOCAL_BACKUP_DIR}/postgresql/*
|
# rm -rf ${LOCAL_BACKUP_DIR}/postgresql/*
|
||||||
## example with pg_dumpall (warning: you need space in ~postgres)
|
## example with pg_dumpall (warning: you need space in ~postgres)
|
||||||
# su - postgres -c "pg_dumpall > ~/pg.dump.bak"
|
# su - postgres -c "pg_dumpall > ~/pg.dump.bak"
|
||||||
# mv ~postgres/pg.dump.bak ${LOCAL_BACKUP_DIR}/
|
# mv ~postgres/pg.dump.bak ${LOCAL_BACKUP_DIR}/
|
||||||
|
@ -364,7 +367,7 @@ if [ "${LOCAL_TASKS}" = "1" ]; then
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [ -n "${backup_server_state_bin}" ]; then
|
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
|
else
|
||||||
mkdir -p "${server_state_dir}"
|
mkdir -p "${server_state_dir}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue