improve comments readability

This commit is contained in:
Jérémy Lecour 2020-02-14 10:52:54 +01:00 committed by Jérémy Lecour
parent 124af075ae
commit 6d7072234d
1 changed files with 16 additions and 8 deletions

View File

@ -141,7 +141,7 @@ if [ "${LOCAL_TASKS}" = "1" ]; then
## OpenLDAP : example with slapcat
# slapcat -l ${LOCAL_BACKUP_DIR}/ldap.bak
### MySQL
## MySQL
## example with global and compressed mysqldump
# mysqldump --defaults-extra-file=/etc/mysql/debian.cnf -P 3306 \
@ -188,7 +188,7 @@ if [ "${LOCAL_TASKS}" = "1" ]; then
# fi
# done
### PostgreSQL
## PostgreSQL
## example with pg_dumpall (warning: you need space in ~postgres)
# su - postgres -c "pg_dumpall > ~/pg.dump.bak"
@ -204,7 +204,8 @@ if [ "${LOCAL_TASKS}" = "1" ]; then
## example with only TABLE1 and TABLE2 from MYBASE
# pg_dump -p 5432 -h 127.0.0.1 -U USER --clean -F t --inserts -f ${LOCAL_BACKUP_DIR}/pg-backup.tar -T 'TABLE1' -T 'TABLE2' MYBASE
## MongoDB : example with mongodump
## MongoDB
## don't forget to create use with read-only access
## > use admin
## > db.createUser( { user: "mongobackup", pwd: "PASS", roles: [ "backup", ] } )
@ -215,10 +216,14 @@ if [ "${LOCAL_TASKS}" = "1" ]; then
# echo "Error with mongodump!"
# fi
## Redis : example with copy .rdb file
## Redis
## example with copy .rdb file
# cp /var/lib/redis/dump.rdb ${LOCAL_BACKUP_DIR}/
## ElasticSearch, take a snapshot as a backup.
## ElasticSearch
## Take a snapshot as a backup.
## Warning: You need to have a path.repo configured.
## See: https://wiki.evolix.org/HowtoElasticsearch#snapshots-et-sauvegardes
# curl -s -XDELETE "localhost:9200/_snapshot/snaprepo/snapshot.daily" -o /tmp/es_delete_snapshot.daily.log
@ -239,10 +244,13 @@ if [ "${LOCAL_TASKS}" = "1" ]; then
# date=$(date +%F)
# curl -s -XPUT "localhost:9200/_snapshot/snaprepo/snapshot_${date}?wait_for_completion=true" -o /tmp/es_snapshot_${date}.log
## RabbitMQ : export config
## RabbitMQ
## export config
#rabbitmqadmin export ${LOCAL_BACKUP_DIR}/rabbitmq.config >> $LOGFILE
# backup MegaCli config
## MegaCli config
#megacli -CfgSave -f ${LOCAL_BACKUP_DIR}/megacli_conf.dump -a0 >/dev/null
## Dump system and kernel versions
@ -295,7 +303,7 @@ if [ "${LOCAL_TASKS}" = "1" ]; then
##disklabel sd0 > ${LOCAL_BACKUP_DIR}/partitions
## Dump pf infos
pfctl -sa |> ${LOCAL_BACKUP_DIR}/pfctl-sa.txt
pfctl -sa > ${LOCAL_BACKUP_DIR}/pfctl-sa.txt
fi