diff --git a/installer/bin/backup_es_folders.sh b/installer/bin/backup_es_folders.sh index 08155332..32409e0b 100755 --- a/installer/bin/backup_es_folders.sh +++ b/installer/bin/backup_es_folders.sh @@ -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 ..." diff --git a/installer/etc/tpot/elkbase.tgz b/installer/etc/tpot/elkbase.tgz index 1de642ff..4565c048 100644 Binary files a/installer/etc/tpot/elkbase.tgz and b/installer/etc/tpot/elkbase.tgz differ diff --git a/installer/etc/tpot/kibana-objects.tgz b/installer/etc/tpot/kibana-objects.tgz index 3791d58e..c09d5b59 100644 Binary files a/installer/etc/tpot/kibana-objects.tgz and b/installer/etc/tpot/kibana-objects.tgz differ