Local backup questions (quota-size, verify)

Hello Duplicati experts,

Could you shed some light on the inner workings:

  1. Can --quota-size and --quota-warning-threshold be of any benefit to local backups? (Backup to a second hard drive on the same machine?)

Or will it ignore any set value because it will follow information provided by the OS regarding the hard disk? (This was hinted at in the previous docs; unsure about the latest status quo.)

Could you provide an example?

# UNVERIFIED SYNTAX
--quota-size=?200GB? #what type unit? Used with `=`? Not in docs.
--quota-warning-threshold=?5? #threshold seen from free space or used space? In % or MB/GB?
# This means?: If $totalsizebackup > 100%-5% then warn.

Though we are aware that duplicati has many integrations to upload the backup to external parties, it is preferred in this situation to have a local backup and then have a third-party synchronise that folder as an external backup.

The external backup however has limited space, if possible I would like to configure quota on the backup config so that duplicati starts firing warnings when it is gets close to the remote limit. Via the console app we can then hope to perceive that either something has gotten in the backup that shouldn’t be in there, or the end-user’s remote storage solution needs updating.

Looking for clarity on what is possible with the quota switches.


Second question

  1. When one uses verify or backup-test-percentage or backup-test-samples to verify remote volumes, in a remote setup, a set number/percentage of remote volumes are downloaded and their hashes calculated, right?
    For a local backup, is this accelerated and is the hash calculated of the volume-files by reading them from the second hard drive directly or are the pseudo-remote volume-files first copied to the C: drive and are the hashes then calculated and compared?

Just trying to make sense of some performance measurements in which disk activity during verification did not always make sense; the method of measuring was not perfect, hence the question.

(This questions is about verification of the volumes, so without the unpacking done by --full-remote-verification; this one was not used.)

I think it got closer to what you want.

Allow forcing the quota #1301

Currently quota-size option is ignored when a backend reports how much space there is left. This is suboptimal as users may wish to use backend for other purposes, e.g. Drive Storage is also used to keep GMail messages. Please allow to force quota limit via an additional option.

Your request below sounds similar to me – wanting to not base on total space.

Add option to disable quota and update quota size option#4993 has some info.

v2.0.9.100_canary_2024-05-30 was long enough ago to be in a current Stable.

Additional quota control options, thanks @Jojo-1000

For the syntax, just look at what the GUI makes, and at least that should be OK.

image

Also note that there is bubble help in the GUI. Maybe it can sometimes clarify.

Not exactly. The TEST command explains what a sample actually means. That is:

A sample consists of 1 dlist, 1 dindex, 1 dblock.

however it’s not going to check a file twice in a run. It might overcheck dlist files,
because there are likely few of them. There are lots of dblock, each with dindex.

I didn’t write the code, but I think any “download” deposits it into a temporary file.
For many uses (but not for hashing) the destination file also has to be decrypted.
tempdir option and similar can move the location. It’s also used during uploads.

If you want to put file I/O under a microscope, use Sysinternals Process Monitor.

Although I’m not sure it’s faster, you can also use upload-verification-file.
The utility-scripts folder has Python and PowerShell scripts to direct-verify.