# Compression

## Understanding compression

Compression is the process of reducing the size of data before it is stored in a backup. It minimizes storage usage and can improve transfer speed by decreasing the amount of data that needs to be written or transmitted.

In **GitProtect**, compression is enabled by default to reduce the time needed to transfer backup copies to storage and to minimize the storage space needed to keep them.

***

## Configuring compression settings

Compression can be enabled when creating a new backup plan in the **Management Service**. You can find it in the backup plan's advanced settings (**Advanced settings** > **Edit** > toggle the **Compression** option to enable it).

Unlike encryption, compression settings can also be adjusted in an already existing backup plan.

<figure><img src="https://696332517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtsE6XtJyUIEKVdSxPlS3%2Fuploads%2Fgit-blob-43b5a741c9de7f4e14961b8e73dc61e60e8c0233%2Fimage%20(332).png?alt=media" alt=""><figcaption></figcaption></figure>

#### Depending on the type of data being backed up, you can choose between two compression algorithms:

1. **LZ4** — fast compression with a reasonable compression ratio.
2. **ZStandard** — lossless compression algorithm, used in **GitProtect** by default.

#### And also three compression levels:

1. **Normal** — compression is faster, but the data takes more storage space.
2. **Medium** — the most optimal level with the best balance between processing time and storage space usage; used by default.
3. **High** — compression takes longer, but the data requires less storage space after compression.
