delete incremental backups correctly after full backup
This commit is contained in:
parent
28dc169ab2
commit
89d53f5043
1
btrbk
1
btrbk
|
@ -24,6 +24,7 @@ function bkRun {
|
||||||
btrfs send $SNAPDIR$snapName | gpg --batch -er "$PUBKEY" -o - | \
|
btrfs send $SNAPDIR$snapName | gpg --batch -er "$PUBKEY" -o - | \
|
||||||
rclone rcat $RCLONEDIR$month"-${FULL[0]}/"$snapName.pgp
|
rclone rcat $RCLONEDIR$month"-${FULL[0]}/"$snapName.pgp
|
||||||
if [[ $1 = "full" ]]; then
|
if [[ $1 = "full" ]]; then
|
||||||
|
rclone mkdir $RCLONEDIR$month"-${INCR[0]}"
|
||||||
for o in ${!bkSuffix[@]}; do
|
for o in ${!bkSuffix[@]}; do
|
||||||
mapfile -t oldBk < <(rclone lsf $RCLONEDIR | grep ....-..-${bkSuffix[$o]} | head -n -${keepTime[$o]})
|
mapfile -t oldBk < <(rclone lsf $RCLONEDIR | grep ....-..-${bkSuffix[$o]} | head -n -${keepTime[$o]})
|
||||||
for n in ${!oldBk[@]}; do
|
for n in ${!oldBk[@]}; do
|
||||||
|
|
Loading…
Reference in a new issue