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 #!/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"
@ -59,4 +60,4 @@ okcreate
ltest_state "create ok file" ltest_state "create ok file"
send_state "done" send_state "done"
putlog "SUCCESS_BACKUP" putlog "SUCCESS_BACKUP"
putlog "---------- finish $ME ----------" putlog "---------- finish $ME ----------"

View File

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