Skip to content
gilbertchen edited this page Nov 10, 2017 · 7 revisions
SYNOPSIS:
   duplicacy backup - Save a snapshot of the repository to the storage

USAGE:
   duplicacy backup [command options]

OPTIONS:
   -hash                      detect file differences by hash (rather than size and timestamp)
   -t <tag>                   assign a tag to the backup
   -stats                     show statistics during and after backup
   -threads <n>               number of uploading threads
   -limit-rate <kB/s>         the maximum upload rate (in kilobytes/sec)
   -dry-run                   dry run for testing, don't backup anything. Use with -stats and -d
   -vss                       enable the Volume Shadow Copy service (Windows only)
   -storage <storage name>    backup to the specified storage instead of the default one

The backup command creates a snapshot of the repository and uploads it to the storage. If -hash is not provided,it will upload new or modified files since last backup by comparing file sizes and timestamps. Otherwise, every file is scanned to detect changes.

You can assign a tag to the snapshot so that later you can refer to it by tag in other commands.

If the -stats option is specified, statistical information such as transfer speed, and the number of chunks will be displayed throughout the backup procedure.

The -threads option can be used to specify more than one thread to upload chunks.

The -limit-rate option sets a cap on the maximum upload rate.

The -vss option works on Windows only to turn on the Volume Shadow Copy service such that files opened by other processes with exclusive locks can be read as usual.

When the repository can have multiple storages (added by the add command), you can select the storage to back up to by giving a storage name.

You can specify patterns to include/exclude files by putting them in a file named .duplicacy/filters. Please refer to the Include/Exclude Patterns section for how to specify the patterns.

Clone this wiki locally