mdmxen_backuper release 1.0

This commit is contained in:
Mike D'Morto 2021-02-01 18:51:56 +07:00
parent a6c66471fa
commit d2731648c5
2 changed files with 7 additions and 3 deletions

View File

@ -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"

View File

@ -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