mdmxen_backuper release 1.2
This commit is contained in:
parent
be48e44b68
commit
1257e42893
@ -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
|
||||
@ -59,5 +62,6 @@ putlog "create ok file"
|
||||
okcreate
|
||||
ltest_state "create ok file"
|
||||
send_state "done"
|
||||
send_state "stop script v$VERSION"
|
||||
putlog "SUCCESS_BACKUP"
|
||||
putlog "---------- finish $ME ----------"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user