mirror of
https://github.com/YunoHost-Apps/borg_ynh.git
synced 2024-09-03 18:16:05 +02:00
[fix] Prune wordpress should not prune wordpress__2
This commit is contained in:
parent
710b0d58b9
commit
d62d4120fa
1 changed files with 3 additions and 1 deletions
|
@ -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
|
borg create $repo::${name}_${current_date} ./ 2>&1 >/dev/null | log_with_timestamp
|
||||||
popd
|
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() {
|
do_mount() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue