# Back up without compression

**URL:** <https://forum.duplicati.com/t/back-up-without-compression/10613>\
**Category:** Comparison\
**Created:** [August 26, 2020, 7:24pm UTC](https://forum.duplicati.com/t/back-up-without-compression/10613 "2020-08-26T19:24:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![lagethomas](https://forum.duplicati.com/user_avatar/forum.duplicati.com/lagethomas/32/4376_2.png) [@lagethomas](https://forum.duplicati.com/u/lagethomas)\
**Post date:** [August 26, 2020, 7:24pm UTC](https://forum.duplicati.com/t/back-up-without-compression/10613/1 "2020-08-26T19:24:03Z")

</div>

Wouldn’t it be possible to include an option to backup without compression? Compression takes a little while to process, a SAFETEC tool offers this option to compress files or not, I think it would be interesting if you had the option to not compress and just:  
\*\* Perform backup without compression, \*  
\*\* perform encrypted backup without compression , \*  
\*\* backup with encrypted compression \*  
\*\* backup with compression without encryption.\*

---

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [August 27, 2020, 4:27pm UTC](https://forum.duplicati.com/t/back-up-without-compression/10613/2 "2020-08-27T16:27:32Z")

</div>

[compression-extension-file](https://duplicati.readthedocs.io/en/latest/06-advanced-options/#compression-extension-file) attempts to do this automatically by not compressing files that are compressed.  
You can use your own file to replace the default one in your installation. It’s not a direct option, but an option.

---

<div class="post-metadata">

**Author:** ![Sami\_Lehtinen](https://forum.duplicati.com/user_avatar/forum.duplicati.com/sami_lehtinen/32/1779_2.png) [@Sami\_Lehtinen](https://forum.duplicati.com/u/Sami_Lehtinen)\
**Post date:** [August 31, 2020, 7:17am UTC](https://forum.duplicati.com/t/back-up-without-compression/10613/3 "2020-08-31T07:17:38Z")

</div>

Afaik there are also general compression options that can be used, without needing to set list of extensions.

To my knowledge it should give same result if you set zip _compression-method_ to _None_ or set _compression-level_ to _0_.

No I didn’t try those, but should be available if someone is looking for solution.

---

<div class="post-metadata">

**Author:** ![lagethomas](https://forum.duplicati.com/user_avatar/forum.duplicati.com/lagethomas/32/4376_2.png) [@lagethomas](https://forum.duplicati.com/u/lagethomas)\
**Post date:** [August 31, 2020, 11:29am UTC](https://forum.duplicati.com/t/back-up-without-compression/10613/4 "2020-08-31T11:29:08Z")

</div>

So, in this case, if I set the compression method to None, does it tend to copy the actual files, without compressing anything?

---

<div class="post-metadata">

**Author:** ![kees-z](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kees-z/32/29_2.png) [@kees-z](https://forum.duplicati.com/u/kees-z)\
**Post date:** [August 31, 2020, 12:00pm UTC](https://forum.duplicati.com/t/back-up-without-compression/10613/5 "2020-08-31T12:00:11Z")

</div>

No, Duplicati will still split up the files in chunks and copy the chunks into a ZIP file for deduplication purposes. ZIP is used purely as a container for the chunks, so the chunks will be copied straight to the ZIP file without any form of compression if you disable it.

If you want to copy source files directly to the backend, you need a file synchronization tool.

---

<div class="post-metadata">

**Author:** ![lagethomas](https://forum.duplicati.com/user_avatar/forum.duplicati.com/lagethomas/32/4376_2.png) [@lagethomas](https://forum.duplicati.com/u/lagethomas)\
**Post date:** [August 31, 2020, 12:03pm UTC](https://forum.duplicati.com/t/back-up-without-compression/10613/6 "2020-08-31T12:03:46Z")

</div>

I understand, thank you very much for the exclusion.  
As I can use other compression methods, I tried to use tar, gz, but it didn’t work.

---

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [August 31, 2020, 1:27pm UTC](https://forum.duplicati.com/t/back-up-without-compression/10613/7 "2020-08-31T13:27:28Z")

</div>

> [@lagethomas](#):
>
> As I can use other compression methods, I tried to use tar, gz, but it didn’t work.

How do you even type that in? I had to use three-dot menu’s `Edit as text` to hand-edit to get a warning:

> 2020-08-31 08:50:34 -04 - [Warning-Duplicati.Library.Main.Controller-OptionValidationError]: The option --zip-compression-method does not support the value “tar”, supported values are: None, Deflate, BZip2, LZMA, PPMd

GUI lists the legal options. Command line of course doesn’t lead you through, so illegal entries are easy…

![image](https://forum.duplicati.com/uploads/default/original/2X/4/430eac9dca78fa4f7c3f886a7205c58e693f4ad3.png)

One reason that [tar](https://en.wikipedia.org/wiki/Tar_(computing)) isn’t an allowed compression method is because it isn’t a compression method at all, rather it’s an archive format for collecting many files into one file. ZIP is also an archive format. Both allow compression as well, however [ZIP](https://en.wikipedia.org/wiki/Zip_(file_format)) compresses each file separately in the archive (which is why Duplicati can compress or not compress depending on source file extension, as source blocks [go into the archive](https://duplicati.readthedocs.io/en/latest/appendix-a-how-the-backup-process-works/)).

[Choosing a Compression Method](https://kb.winzip.com/help/help_compression.htm) describes what WinZip supports for compression. Duplicati does fewer. Terminology does get mixed. A Linux tar.gz file is apparently a tar archive file turned into [gzip](https://en.wikipedia.org/wiki/Gzip) file format to compress using the [Deflate](https://en.wikipedia.org/wiki/DEFLATE) compression method. [Archive Formats vs Compression](https://github.com/adamhathcock/sharpcompress/blob/master/FORMATS.md#archive-formats-vs-compression) explains this further.

Feel free to do performance testing, if that’s the goal. If the goal is something else, please clarify what it is.

Some help text from CLI:

```plaintext
  --zip-compression-method (Enumeration): Sets the Zip compression method
    This option can be used to set an alternative compressor method, such as
    LZMA. Note that using another value than Deflate will cause the
    zip-compression-level option to be ignored.
    * values: None, Deflate, BZip2, LZMA, PPMd
    * default value: Deflate

```

```plaintext
  --zip-compression-level (Enumeration): Sets the Zip compression level
    This option controls the compression level used. A setting of zero gives
    no compression, and a setting of 9 gives maximum compression.
    * values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
    * default value: BestCompression

```
