client: Only one loop for all redis instances
All checks were successful
gitea/evobackup/pipeline/head This commit looks good
All checks were successful
gitea/evobackup/pipeline/head This commit looks good
This commit is contained in:
parent
bdd3ef7350
commit
140a498e28
|
@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
* Add AGPL License and README
|
* Add AGPL License and README
|
||||||
* Script now depends on Bash
|
* Script now depends on Bash
|
||||||
* tolerate absence of mtr or traceroute
|
* tolerate absence of mtr or traceroute
|
||||||
|
* Only one loop for all Redis instances
|
||||||
|
|
||||||
### Deprecated
|
### Deprecated
|
||||||
|
|
||||||
|
|
|
@ -224,15 +224,13 @@ local_tasks() {
|
||||||
## Purge previous dumps
|
## Purge previous dumps
|
||||||
# rm -rf ${LOCAL_BACKUP_DIR}/redis/
|
# rm -rf ${LOCAL_BACKUP_DIR}/redis/
|
||||||
# rm -rf ${LOCAL_BACKUP_DIR}/redis-*
|
# rm -rf ${LOCAL_BACKUP_DIR}/redis-*
|
||||||
## example with copy .rdb file
|
## Copy dump.rdb file for each found instance
|
||||||
## for the default instance :
|
# for instance in $(find /var/lib/ -mindepth 1 -maxdepth 1 -type d -name 'redis*'); do
|
||||||
# mkdir -p -m 700 ${LOCAL_BACKUP_DIR}/redis/
|
# if [ -f "${instance}/dump.rdb" ]; then
|
||||||
# cp /var/lib/redis/dump.rdb ${LOCAL_BACKUP_DIR}/redis/
|
# name=$(basename $instance)
|
||||||
## for multiple instances :
|
# mkdir -p ${LOCAL_BACKUP_DIR}/${name}
|
||||||
# for instance in $(ls -d /var/lib/redis-* 2> /dev/null); do
|
# cp -a "${instance}/dump.rdb" "${LOCAL_BACKUP_DIR}/${name}"
|
||||||
# name=$(basename $instance)
|
# fi
|
||||||
# mkdir -p ${LOCAL_BACKUP_DIR}/${name}
|
|
||||||
# cp -a ${instance}/dump.rdb ${LOCAL_BACKUP_DIR}/${name}
|
|
||||||
# done
|
# done
|
||||||
|
|
||||||
## ElasticSearch
|
## ElasticSearch
|
||||||
|
|
Loading…
Reference in a new issue