YunoHost-Apps / borg_ynh

An experimental Borg implementation for YunoHost
https://www.borgbackup.org/
GNU Affero General Public License v3.0
19 stars 23 forks source link

prune options when several same applications delete backup #56

Closed espritlibre closed 3 years ago

espritlibre commented 3 years ago

Hello,

I have several wordpress apps install on my server

When i check backup, at the end of it, i saw that some wordpress backup archive are missing

If you have more that 2 wordpress application (or other applications with the same name), when the prune hourly is execute (just after your backup), one of the archive is delete

For example Backup works for

But when the backup of the wordpress2 is done the wordpress1 is prune.

https://github.com/YunoHost-Apps/borg_ynh/blob/07114d1b27621dab88bd52e04029bf186591d153/conf/backup_method.j2#L47

For the moment i disable the prune, i don't know if it's a bug of borg which ignore the __ in the name of archive and how can i modify prune to ignore that

zamentur commented 3 years ago

Fixed in #71