Professional Documents
Culture Documents
With the Commandline tool you can perform all operations that are available in
the Graphical User Interface. You can even do more with the Commandline tool.
If you want to perform specific operations, like deleting a particular backup or
comparing 2 backups, you will not be able to do this in the Graphical User
Interface, but the Commandline tool supports these operations.
Which arguments you need to specify depend on the command you run with the
Commandline tool. Generally, these arguments need to be supplied:
Generally, each operation from the command line has the following format:
For Windows:
Duplicati.CommandLine.exe <command> [storage-URL] [arguments] [advanced-options]
Advanced options with a value are preceeded with 2 dashes (--), followed by
an equal=sign (=) and the desired value:
--advanced-option=value
Advanced options that don't have a value (just turn on an option) can be
specified in 2 ways:
--advanced-option=true (--advanced-option=false disables the option)
--advanced-option
To get help about a specific topic, add it to the help command. So if you need
help about the find command, type Duplicati.CommandLine.exe help find, which will
return the following result:
The special help topic example will show a few examples of how the
Commandline tool should be used to perform some simple operations.
To show the examples, type Duplicati.CommandLine.exe help example.
protocol://username:password@hostname:port/path?backend_option1=value1&backend_option2=value2
--overwrite=<boolean>
Overwrites existing files.
--restore-path=<string>
Restores files to instead of their original destination. Top folders are removed
if possible.
--time=<time>
Restore files that are older than the specified time.
--version=<int>
Restore files from a specific backup.
--time=<time>
Shows what the files looked like at a specific time. Absolute and relative
times can be specified.
--version=<int>
Shows what the files looked like in a specific backup. If no version is
specified, the latest backup (version=0) will be used. If nothing is found, older
backups will be searched automatically.
--include=<string>
Reduces the list of files in a backup to those that match the provided string.
This is applied before the search is executed.
--exclude=<string>
Removes matching files from the list of files in a backup. This is applied
before the search is executed.
--all-versions=<boolean>
Searches in all backup sets, instead of just searching the latest.
--verbose
Shows names of files
--full-result
Lists all added / removed / changed files instead of summarized version.
--include=<filter>
Adds an include filter (for verbose output)
--exclude=<filter>
Adds an exclude filter (for verbose output)
--time=<time>
Checks samples from a specific time.
--version=<int>
Checks samples from specific versions. Delimiters are , and -.
--full-remote-verification
Checks the internal structure of each file instead of just verifying the file hash.
--small-file-max-count=<int>
The maximum allowed number of small files.
--small-file-size=<int>
Files smaller than this size are considered to be small and will be compacted
with other small files as soon as there are <small-file-max-count> of them. --small-
file-size=20 means 20% of <dblock-size>.
--threshold=<percent_value>
The amount of old data that a dblock file can contain before it is considered
to be replaced.
--dry-run
Performs the operation, but does not write changes to the local database or
the remote storage.
--keep-time=<time>
Marks data outdated that is older than <time>.
--keep-versions=<int>
Marks data outdated that is older than versions.
--version=<int>
Deletes all files that belong to the specified version(s).
--allow-full-removal
Disables the protection against removing the final fileset.
--dry-run
Performs the operation, but does not write changes to the local database or
the remote storage.
--version=<int>
Selects specific versions to purge from, multiple versions can be specified
with commas.
--time=<time>
Selects a specific version to purge from.
--no-auto-compact
Performs a compact process after purging files
--include=<filter>
Selects files to purge, using filter syntax
--dry-run
Performs the operation, but does not write changes to the local database or
the remote storage.
Duplicati.CommandLine.exe system-info