From b48b2a58fa4d90f73539b15892c318f3c801f4b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20S=C3=89RIE?= Date: Thu, 9 Jan 2014 17:00:51 +0100 Subject: [PATCH] Comment of ElasticSearch dump. No need to be activated by default... --- zzz_evobackup | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/zzz_evobackup b/zzz_evobackup index 5327248..18ef68b 100644 --- a/zzz_evobackup +++ b/zzz_evobackup @@ -97,19 +97,19 @@ mkdir -p -m 700 /home/backup # Dump Redis # cp /var/lib/redis/dump.rdb /home/backup/ -# Dump ElasticSearch -# Disable ES translog flush -curl -s -XPUT 'localhost:9200/_settings' -d '{"index.translog.disable_flush": true}' >/dev/null -# Flushes translog -curl -s 'localhost:9200/_flush' | grep -qe '"ok":true' -# If it succeed, do an rsync of the datadir -if [ $? -eq 0 ]; then - rsync -a /var/lib/elasticsearch /home/backup/ -else - echo "Error when flushing ES translog indexes." -fi -# In any case re-enable translog flush -curl -s -XPUT 'localhost:9200/_settings' -d '{"index.translog.disable_flush": false}' > /dev/null +## Dump ElasticSearch +## Disable ES translog flush +#curl -s -XPUT 'localhost:9200/_settings' -d '{"index.translog.disable_flush": true}' >/dev/null +## Flushes translog +#curl -s 'localhost:9200/_flush' | grep -qe '"ok":true' +## If it succeed, do an rsync of the datadir +#if [ $? -eq 0 ]; then +# rsync -a /var/lib/elasticsearch /home/backup/ +#else +# echo "Error when flushing ES translog indexes." +#fi +## In any case re-enable translog flush +#curl -s -XPUT 'localhost:9200/_settings' -d '{"index.translog.disable_flush": false}' > /dev/null # Dump MBR / table partitions # dd if=/dev/sda of=/home/backup/MBR bs=512 count=1 2>&1 | egrep -v "(records in|records out|512 bytes)"