Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] Cache TTL environment variable #135

Open
Vitriia opened this issue Apr 4, 2023 · 0 comments
Open

[Enhancement] Cache TTL environment variable #135

Vitriia opened this issue Apr 4, 2023 · 0 comments

Comments

@Vitriia
Copy link

Vitriia commented Apr 4, 2023

Not a bug but it can be a real issue :

The way backup are actually implemented in Yunohost actually have a little loophole : for installations with a lot a small apps and some big apps, full backup can take for ever. It's because Borg cache have a Time To Live set by default to 20 backups (same machine & user).
So if you have 8 apps borg will recalculate each chunk every 2 full backup (8 apps + conf & data).
It's far worst if the installation have more than 18 apps because chunks will be recalculated each full backup.

A way to prevent it is to integrate BORG_FILES_CACHE_TTL environment variable has a yunohost app setting.
This way, admins who want to custom this setting can do it in a flexible way (aka not having to change the backup_method each time borg app is updated).

The dedicated environment variable doc
The Cache TTL explained

Have a nice day

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant