mdmxen_backuper release 1.2
This commit is contained in:
parent
be48e44b68
commit
1257e42893
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# mdmxen project - backuper for backup vm with days rotation etc
|
# mdmxen project - backuper for backup vm with days rotation etc
|
||||||
# author mikedmorto 2021 year
|
# author mikedmorto 2021 year
|
||||||
# version 1.1
|
VERSION "1.2"
|
||||||
|
|
||||||
# include this host config
|
# include this host config
|
||||||
. /root/bin/mdmxen/etc/host.cfg
|
. /root/bin/mdmxen/etc/host.cfg
|
||||||
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
#main
|
#main
|
||||||
putlog "---------- Start $ME ----------"
|
putlog "---------- Start $ME ----------"
|
||||||
send_state "starting script"
|
send_state "starting script v$VERSION"
|
||||||
|
|
||||||
# lock file test
|
# lock file test
|
||||||
putlog "test lock file"
|
putlog "test lock file"
|
||||||
@ -40,6 +40,9 @@ putlog "run before action"
|
|||||||
send_state "run vms actions"
|
send_state "run vms actions"
|
||||||
putlog "run vms action"
|
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
|
. /root/bin/mdmxen/etc/vms.cfg
|
||||||
|
|
||||||
# rotation
|
# rotation
|
||||||
@ -58,6 +61,7 @@ ltest_state "delete .lock file"
|
|||||||
putlog "create ok file"
|
putlog "create ok file"
|
||||||
okcreate
|
okcreate
|
||||||
ltest_state "create ok file"
|
ltest_state "create ok file"
|
||||||
send_state "done"
|
send_state "done"
|
||||||
|
send_state "stop script v$VERSION"
|
||||||
putlog "SUCCESS_BACKUP"
|
putlog "SUCCESS_BACKUP"
|
||||||
putlog "---------- finish $ME ----------"
|
putlog "---------- finish $ME ----------"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user