riotkit-org / backup-repository

Backup storage for E2E GPG-encrypted files, with multi-user, quotas, versioning, using a object storage (S3/Min.io/GCS etc.) and deployed on Kubernetes or standalone.
Apache License 2.0
25 stars 4 forks source link

Make a possibility to use the rest of space that remained in a collection #156

Closed blackandred closed 2 years ago

blackandred commented 3 years ago

image

Given I have "MAX OVERALL COLLECTION SIZE" at 400 MB
And I have "MAX ONE VERSION SIZE" at "150 MB
And I have "MAX BACKUPS COUNT" at 2x

When I upload first file of size 150 MB
And I upload second file of size 200 MB
Then I expect success, because the missing 50 MB will be taken from buffer that could be calculated by formula (MAX OVERALL COLLECTION SIZE - (MAX ONE VERSION SIZE * MAX BACKUPS COUNT))
blackandred commented 2 years ago

Implemented as part of https://github.com/riotkit-org/backup-repository/issues/164