minor changes
This commit is contained in:
parent
a3a643dd23
commit
b91ef3583c
6
btrbk
6
btrbk
|
@ -180,13 +180,13 @@ function testDate {
|
||||||
if [ "$BKCYCLE" = "weekly" ]; then
|
if [ "$BKCYCLE" = "weekly" ]; then
|
||||||
local dateType = "+%u"
|
local dateType = "+%u"
|
||||||
elif [ "$BKCYCLE" = "monthly" ]; then
|
elif [ "$BKCYCLE" = "monthly" ]; then
|
||||||
local dateType = "+%d"
|
local dateType = "+%-d"
|
||||||
else
|
else
|
||||||
echo "BKCYCLE not correctly configured"
|
echo "BKCYCLE not correctly configured"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
for i in ${!BKRETENTION[@]}; do
|
for i in ${!BKDAY[@]}; do
|
||||||
if [ `date $dateType` = ${BKRETENTION[$i]} ]; then
|
if [ `date $dateType` = ${BKDAY[$i]} ]; then
|
||||||
bkRun "full"
|
bkRun "full"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
|
@ -16,7 +16,7 @@ BTRFSUUID="d1b20b8a-3cf4-41f7-bdc8-d50d53dc77c2"
|
||||||
#btrfs volume too keep snapshots in
|
#btrfs volume too keep snapshots in
|
||||||
SNAPDIR="/.snapshots/"
|
SNAPDIR="/.snapshots/"
|
||||||
|
|
||||||
#Rclone Directory on remote storage
|
#rclone Directory on remote storage
|
||||||
RCLONEDIR="test:/mnt/bk/new/"
|
RCLONEDIR="test:/mnt/bk/new/"
|
||||||
|
|
||||||
#How many local snapshots should be kept
|
#How many local snapshots should be kept
|
||||||
|
@ -26,10 +26,9 @@ KEEPLOCAL="10"
|
||||||
BKCYCLE="monthly"
|
BKCYCLE="monthly"
|
||||||
|
|
||||||
#Day when to run full Backup
|
#Day when to run full Backup
|
||||||
#can be specified multiple times 1-7 for weekely and 01-30 for monthly
|
#can be specified multiple times 1-7 for weekely and 1-30 for monthly
|
||||||
#example ("01" "05" "23")
|
#example ("1" "5" "23")
|
||||||
BKRETENTION=("01")
|
BKDAY=("1")
|
||||||
|
|
||||||
|
|
||||||
#Suffix name for incremental/full backups and retention
|
#Suffix name for incremental/full backups and retention
|
||||||
#example: [YYYY-mm-"full"] and will keep the last two backups
|
#example: [YYYY-mm-"full"] and will keep the last two backups
|
||||||
|
|
Loading…
Reference in a new issue