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

Add option to disable quota and update quota size option #4993

Merged
merged 4 commits into from
May 13, 2024

Conversation

Jojo-1000
Copy link
Contributor

Closes #4970
Forum post

  • Add --quota-disable option 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: Allow forcing the quota #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.

If set, the backend is treated as if it does not report a quota at all. No warnings and errors are created and no quota values are set in the backup log.
This option is intended to be used if a backend reports a wrong quota, so it needs to be disabled.
Mono sometimes reports the total size of unknown file systems as zero. Because it should be obvious when the size is actually zero, ignore the quota in this case.
The assigned quota size is checked in addition to the reported backend quota (if available). It can be used to limit the backup size on the remote. Warnings are created according to the same quota warning threshold.
Previously, this option had no function.
@duplicatibot
Copy link

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

@duplicatibot
Copy link

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

@kenkendk kenkendk merged commit 67665e4 into duplicati:master May 13, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

Backup Quota Warning Error
3 participants