Compression?

gui

#1

Does duplicacy have a compression option?


#2

You can set the compression level when initializing the storage:

SYNOPSIS:
   duplicacy init - Initialize the storage if necessary and the current directory as the repository

USAGE:
   duplicacy init [command options] <snapshot id> <storage url>

OPTIONS:
   -encrypt, -e                    encrypt the storage with a password
   -chunk-size, -c 4M              the average size of chunks
   -max-chunk-size, -max 16M       the maximum size of chunks (defaults to chunk-size * 4)
   -min-chunk-size, -min 1M        the minimum size of chunks (defaults to chunk-size / 4)
   -compression-level, -l <level>  compression level (defaults to -1)
The compression level parameter is passed to the zlib library. Valid values are -1 through 9, with 0 meaning no compression, 9 best compression (slowest), and -1 being the default value (equivalent to level 6).

#3

and how about if one uses the Windows GUI? I didn’t see any compression options there.


#4

There is no compression option in the GUI version. You can initialize the storage with the CLI version first, and then when you run the GUI version, once you select the repository directory it will load all settings correctly.


#5

when I try using the -l9 for example I get “Incorrect usage”


#6

What if you try with -l 9 ? (observe the space)


#7

Thanks for the reply…

I tried the space with the same results.


#8

With the latest CLI release Releases · gilbertchen/duplicacy · GitHub – 2.1.2 the init command doesn’t have any compression options.

Here are the options:

D:\vm>z init fdas
The init command requires 2 arguments.

NAME:
   duplicacy init - Initialize the storage if necessary and the current directory as the repository

USAGE:
   duplicacy init [command options] <snapshot id> <storage url>

OPTIONS:
   -encrypt, -e                         encrypt the storage with a password
   -chunk-size, -c <size>               the average size of chunks (defaults to 4M)
   -max-chunk-size, -max <size>         the maximum size of chunks (defaults to chunk-size*4)
   -min-chunk-size, -min <size>         the minimum size of chunks (defaults to chunk-size/4)
   -iterations <i>                      the number of iterations used in storage key derivation (default is 16384)
   -pref-dir <path>                     alternate location for the .duplicacy directory (absolute or relative to current directory)
   -storage-name <name>                 assign a name to the storage
   -repository <path>                   initialize a new repository at the specified path rather than the current working directory


D:\vm>

I think it’s the case that compression support was removed: now only a default compression exists and the user cannot change it.