From 1257e42893150cccc80b548776f8a0c8f13c3f3d Mon Sep 17 00:00:00 2001 From: Mike D'Morto Date: Mon, 8 Feb 2021 20:34:31 +0700 Subject: [PATCH] mdmxen_backuper release 1.2 --- mdmxen/bin/mdmxen_backuper.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/mdmxen/bin/mdmxen_backuper.sh b/mdmxen/bin/mdmxen_backuper.sh index e1b4f29..caa5b22 100755 --- a/mdmxen/bin/mdmxen_backuper.sh +++ b/mdmxen/bin/mdmxen_backuper.sh @@ -1,7 +1,7 @@ #!/bin/bash # mdmxen project - backuper for backup vm with days rotation etc # author mikedmorto 2021 year -# version 1.1 +VERSION "1.2" # include this host config . /root/bin/mdmxen/etc/host.cfg @@ -12,7 +12,7 @@ #main putlog "---------- Start $ME ----------" -send_state "starting script" +send_state "starting script v$VERSION" # lock file test putlog "test lock file" @@ -40,6 +40,9 @@ putlog "run before action" send_state "run vms actions" putlog "run vms action" +# this is for move tmp do days, because of cannot move empty dir +touch $DAYS_DIR/null.txt + . /root/bin/mdmxen/etc/vms.cfg # rotation @@ -58,6 +61,7 @@ ltest_state "delete .lock file" putlog "create ok file" okcreate ltest_state "create ok file" -send_state "done" +send_state "done" +send_state "stop script v$VERSION" putlog "SUCCESS_BACKUP" putlog "---------- finish $ME ----------"