mdmxen_backuper release 1.0
This commit is contained in:
parent
a6c66471fa
commit
d2731648c5
@ -1,6 +1,7 @@
|
||||
#!/bin/bash
|
||||
# mdmxen project - backuper for backup vm with days rotation etc
|
||||
# version 0-test
|
||||
# author mikedmorto 2021 year
|
||||
# version 1.0
|
||||
|
||||
# include this host config
|
||||
. /root/bin/mdmxen/etc/host.cfg
|
||||
@ -45,7 +46,7 @@ putlog "run vms action"
|
||||
putlog "call rotation function"
|
||||
# AMOUNT_OF_DAYS
|
||||
send_state "on rotation"
|
||||
day_rotation_state 3
|
||||
day_rotation_state $DAY_ROTATION
|
||||
|
||||
send_state "run after actions"
|
||||
putlog "run after action"
|
||||
@ -59,4 +60,4 @@ okcreate
|
||||
ltest_state "create ok file"
|
||||
send_state "done"
|
||||
putlog "SUCCESS_BACKUP"
|
||||
putlog "---------- finish $ME ----------"
|
||||
putlog "---------- finish $ME ----------"
|
||||
|
||||
@ -18,3 +18,6 @@ DAYS_DIR="/mnt/backup/days"
|
||||
TARGET_DIR="/mnt/backup/days/1"
|
||||
# months rotation dir
|
||||
MONTHS_DIR="/mnt/backup/months"
|
||||
#day for rotation
|
||||
DAY_ROTATION=3
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user