YunoHost-Apps / borg_ynh

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

How does prunning work? #122

Closed tio-trom closed 2 years ago

tio-trom commented 2 years ago

Is Borg going to keep by default --keep-hourly 2 --keep-daily=7 --keep-weekly=8 --keep-monthly=12https://github.com/YunoHost-Apps/borg_ynh/blob/testing/conf/backup_method#L55 ?

Meaning multiple backups?

Because I do not see that on my server. I see 1 archive per app, and I should see multiple if there are multiple backups created, correct?

alexAubin commented 2 years ago

c.f. borg documentation : https://borgbackup.readthedocs.io/en/stable/usage/prune.html

tio-trom commented 2 years ago

So it is not done automatically by this ynh_borg app, one should do it manually via SSH? If so can anyone show me an example of how can be done for yunohost? borg prune -v --list --keep-daily=7 --keep-weekly=4 --prefix='{hostname}-' /path/to/repo This is the borg documentation, but I am unsure what to replace the hostname and /path/to/repo with. I found ynh documentarion for borg for other things but not for this. Thanks

tio-trom commented 2 years ago

Ok it seems to keep versions of files.

Cantello commented 1 year ago

What did you use as hostname? If I don't use it, only one of the app backups is kept (wordpress in this case), all others were pruned. The backups have names like _auto_appname_date_time - any idea how borg can keep archives of the different apps? Or is this done automatically by the ynh_borg script?