From d2731648c59f4f9f15b7314f9b7b53b12dbd093a Mon Sep 17 00:00:00 2001 From: Mike D'Morto Date: Mon, 1 Feb 2021 18:51:56 +0700 Subject: [PATCH] mdmxen_backuper release 1.0 --- mdmxen/bin/mdmxen_backuper.sh | 7 ++++--- mdmxen/etc/host.cfg | 3 +++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/mdmxen/bin/mdmxen_backuper.sh b/mdmxen/bin/mdmxen_backuper.sh index d011f99..5653411 100755 --- a/mdmxen/bin/mdmxen_backuper.sh +++ b/mdmxen/bin/mdmxen_backuper.sh @@ -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 ----------" \ No newline at end of file +putlog "---------- finish $ME ----------" diff --git a/mdmxen/etc/host.cfg b/mdmxen/etc/host.cfg index ad9678d..f74749e 100644 --- a/mdmxen/etc/host.cfg +++ b/mdmxen/etc/host.cfg @@ -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 +