mdmxen_backuper release 1.0
This commit is contained in:
parent
a6c66471fa
commit
d2731648c5
@ -1,6 +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
|
||||||
# version 0-test
|
# author mikedmorto 2021 year
|
||||||
|
# version 1.0
|
||||||
|
|
||||||
# include this host config
|
# include this host config
|
||||||
. /root/bin/mdmxen/etc/host.cfg
|
. /root/bin/mdmxen/etc/host.cfg
|
||||||
@ -45,7 +46,7 @@ putlog "run vms action"
|
|||||||
putlog "call rotation function"
|
putlog "call rotation function"
|
||||||
# AMOUNT_OF_DAYS
|
# AMOUNT_OF_DAYS
|
||||||
send_state "on rotation"
|
send_state "on rotation"
|
||||||
day_rotation_state 3
|
day_rotation_state $DAY_ROTATION
|
||||||
|
|
||||||
send_state "run after actions"
|
send_state "run after actions"
|
||||||
putlog "run after action"
|
putlog "run after action"
|
||||||
|
|||||||
@ -18,3 +18,6 @@ DAYS_DIR="/mnt/backup/days"
|
|||||||
TARGET_DIR="/mnt/backup/days/1"
|
TARGET_DIR="/mnt/backup/days/1"
|
||||||
# months rotation dir
|
# months rotation dir
|
||||||
MONTHS_DIR="/mnt/backup/months"
|
MONTHS_DIR="/mnt/backup/months"
|
||||||
|
#day for rotation
|
||||||
|
DAY_ROTATION=3
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user