Update backup_es_folders to fit latest 17.x design
Include updated elkbase
Include updated kibana-objects
This commit is contained in:
Marco Ochse 2017-08-11 20:27:20 +00:00
parent 9e2313d7ca
commit adc8ddd090
3 changed files with 6 additions and 33 deletions

View file

@ -22,42 +22,15 @@ myKIBANAINDEXPATH=$myELKPATH/nodes/0/indices/$myKIBANAINDEXNAME
# Let's ensure normal operation on exit or if interrupted ...
function fuCLEANUP {
### Start ELK
systemctl start elk
echo "### Now starting up ELK ..."
### Allow checks to resume
rm -rf /var/run/check.lock
systemctl start tpot
echo "### Now starting T-Pot ..."
}
trap fuCLEANUP EXIT
# Make sure not to interrupt a check
while true
do
if ! [ -a /var/run/check.lock ];
then break
fi
sleep 0.1
if [ "$myCOUNT" = "1" ];
then
echo -n "### Waiting for services "
else echo -n .
fi
if [ "$myCOUNT" = "6000" ];
then
echo
echo "### Overriding check.lock"
rm /var/run/check.lock
break
fi
myCOUNT=$[$myCOUNT +1]
done
# We do not want to get interrupted by a check
touch /var/run/check.lock
# Stop ELK to lift db lock
echo "### Now stopping ELK ..."
systemctl stop elk
sleep 10
# Stop T-Pot to lift db lock
echo "### Now stopping T-Pot"
systemctl stop tpot
sleep 2
# Backup DB in 2 flavors
echo "### Now backing up Elasticsearch folders ..."

Binary file not shown.