# Option formats

In various places it is possible to enter a value, usually passed as a commandline option. These values can be written as strings, but are interpreted different internally.

## Boolean values

A boolean option passed will translate to the value `true` if it is supplied with no assigned value. For example, these two are equivalent

```
--use-ssl
--use-ssl=true
```

It is possible to use the following "thruth values": `1`, `on`, `true`, `yes`.

The "false values" are: `0`, `off`, `false`, `no`.

If the value is neither of these, the context defines what it is interpreted as, but generally it is interpreted as "true".

## Size values

Values provided as sizes are parsed as a number with a multiplier suffix, for example:

```
--volume-size=50mb
```

If no suffix is given, the context has a default suffix that is applied, usually either `kb` or `mb` .

Despite the naming, the sizes are interpreted as [kiki-bytes](https://simple.wikipedia.org/wiki/Kibibyte). Supported suffixes are:

* `b` (or no suffix): bytes, multipler is 1
* `kb`: kilobytes, multiplier is 1024
* `mb`: megabytes, multiplier is 1024^2
* `gb`: gigabytes, multiplier is 1024^3,
* `tb`: terrabytes, multiplier is 2024^4

## Timespans, timestamps, and durations

Similar to size values, timespans and durations can be provided with a value and a multiplier suffix. For example, to set a span of 30 days:

```
--keep-time=30D
```

The supported multipliers are:

* `Y`: year
* `M`: month
* `W`: week, same as `7D`
* `D`: day, same as `24h`
* `h`: hour, same as `60m`
* `m`: minute, same as `60s`
* `s` (or no suffix): seconds

Unlike the sizes, the timespans can be composite, so the value:

```
--keep-time=1M4D3m
```

Translates to "1 month + 4 days + 3 minutes", and the duration is the sum of those values. It is also possible to have negative values, such as `1D-1s`, meaning "1 day minus 1 second".

For timestamps, it is possible to also provide a local-format date-time string, or the special value `now` to signal the current date and time.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.duplicati.com/technical-details/option-formats.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
