YunoHost-Apps / grav_ynh

Grav, a flat-file CMS packaged for YunoHost
https://getgrav.org/
GNU General Public License v3.0
16 stars 12 forks source link

Way too big backups #88

Closed Aeris1One closed 2 years ago

Aeris1One commented 2 years ago

Describe the bug

I backup my apps using Borg backup (which itself uses the intern mechanism for creating backups) and, while my website is basically only a single page (with barely default config), four of those backups were 4.5+ Gb when deduplicated (you can read this as "weight of one backup"), and so 14+ Gb in total for only 4 of them ! I deleted them as my website's only a "Welcome, there's nothing here atm !" page it doesn't need backups, especially if they are that big :/

Any idea why ?

image (In this image, deleted data refers to Grav's backups, total means all my others backups from all others apps)

Context

tituspijean commented 2 years ago

Grav has an internal (daily, I think) backup feature that you should disable. I can investigate how to have it turned off by default, but not before this weekend. 😇

tituspijean commented 2 years ago

I have created the mentioned PR above. This will fix the issue on new installs, but I am not sure it is a good idea to tweak existing configuration.

If you want to disable daily backup, you may find the setting in Grav's admin panel, or in /var/www/grav/user/config/scheduler.yaml, under default-site-backup. Backups are in /var/www/grav/backup.

tituspijean commented 2 years ago

Closing, as it seems the backup scheduler is actually disabled by default (now? maybe it was enabled in the past).