Add option to disable quota and update quota size option
Closes #4970 Forum post
- Add
--quota-disableoption to disable the reported backend quota. Sometimes Mono does not report the quota for the backup path, but rather for a parent directory. - Ignore the File backend quota if the total size is zero
- Update quota size option to assign a backup size limit, in addition to the reported backend quota (related: #1301)
Updated help text
--quota-disable = false
Disable the quota reported by the backend. --quota-size can still be used
to set a manual quota
--quota-size
Set a limit to the amount of storage used on the backend (by this backup).
This is in addition to the full backend quota, if available. Note:
Backups will continue past the quota. This only creates warnings and
error messages.
Disabled quota
If the quota is disabled, the backend is treated as if it does not support reporting a quota at all. This means that the quota values in the result remain set to zero.
The reported quota sometimes needs to be disabled, because Mono sometimes does not recognize the mount point. Then it will report the quota for a parent directory.
Assigned quota
The --quota-size option was previously intended to provide a total backend size, if it does not support reporting a quota. However, this never actually worked. Instead, it now sets a limit on the backup size, in addition to the reported backend quota.
If the backup size is more than the assigned quota size, the backup completes with an error. If the remaining free space is less than the warning threshold (percentage of backup size), the backup completes with a warning. If both the backend quota and the assigned quota is exceeded, the backend quota takes precedence in warning and error messages.
This pull request has been mentioned on Duplicati. There might be relevant details there:
https://forum.duplicati.com/t/duplicati-exit-code-3/16673/11
This pull request has been mentioned on Duplicati. There might be relevant details there:
https://forum.duplicati.com/t/quota-size-check-to-not-be-exceeded/17268/9