From d62d4120fab384958592b393b7df8b533025f82c Mon Sep 17 00:00:00 2001 From: ljf Date: Wed, 3 Mar 2021 19:00:04 +0100 Subject: [PATCH] [fix] Prune wordpress should not prune wordpress__2 --- conf/backup_method.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/backup_method.j2 b/conf/backup_method.j2 index 35ed6a1..37c05d1 100644 --- a/conf/backup_method.j2 +++ b/conf/backup_method.j2 @@ -47,7 +47,9 @@ This is an automated message from your beloved YunoHost server." | /usr/bin/mail borg create $repo::${name}_${current_date} ./ 2>&1 >/dev/null | log_with_timestamp popd - borg prune $repo -P ${name} --keep-hourly 2 --keep-daily=7 --keep-weekly=8 --keep-monthly=12 2>&1 >/dev/null | log_with_timestamp + # About thi _20 it's a crazy fix to avoid pruning wordpress__2 + # if you prune wordpress + borg prune $repo -P ${name}_20 --keep-hourly 2 --keep-daily=7 --keep-weekly=8 --keep-monthly=12 2>&1 >/dev/null | log_with_timestamp } do_mount() {