# Incremental backups

> Back up only what changed since the previous run, and know what retention and a restore do with the result.

An incremental backup stores only the files that changed since the plan's previous backup. It is smaller and quicker than a full backup.

## Prerequisites

- A Clokeep account with the Admin or Operator role.
- A **Files**, **Plesk server** or **cPanel server** plan. **Database** and **Email** plans back up everything on every run. See [Plans](/docs/backups/plans).

## Turn it on

<Steps>
<Step title="Open the plan">
Open **Plans** and click the plan. Under **What to back up**, switch on **Incremental**.
</Step>
<Step title="Choose how often a full backup runs">
**Full backup every N runs** sets how many backups make one chain. Left empty, it is 7.
</Step>
<Step title="Save">
Click **Save changes**. The next run starts a new chain with a full backup.
</Step>
</Steps>

<Frame caption="The incremental options of a Files plan.">
![The What to back up section with Incremental on, Full backup every N runs set to 7 and Turn off deduplication off](/images/docs/incremental-plan-options.png)
</Frame>

On a **Files** plan, **Separate archive per path** cannot be used with **Incremental**.

On a **Plesk server** or **cPanel server** plan, files and mail are incremental for each hosting account. Databases and settings are included in full on every run.

## Chains

A chain is one full backup and the incremental backups made after it. Each incremental backup holds the changes since the backup before it.

With **Full backup every N runs** at 7, a chain holds seven backups: a full one and six incremental ones. The eighth run starts a new chain with a full backup. Only runs that stored a backup count.

Clokeep also starts a new chain with a full backup when:

- You click **More actions** > **Run full backup now** on the plan's page. The previous chain is kept until retention deletes it.
- The chain's full backup is older than the plan's **Keep backups for**.
- On a **Files** plan, the file index of the previous backup was never recorded or is missing from the storage. The run's **Logs** then include a line such as "Started a new full backup: the previous backup's file index is missing from storage."
- On a **Files** plan, the previous run failed or was stopped after it stored part of a backup. The next run does not build on that unfinished backup. Its **Logs** include "Started a new full backup: the previous backup did not finish."

On a **Plesk server** or **cPanel server** plan, each hosting account has its own line of backups in the chain. When one account's previous index cannot be used, only that account is backed up in full, and the run's **Logs** say so.

## Deduplication

An incremental backup does not store a file again when only its timestamp changed, or when it was renamed or moved. It records where the content already is.

**Turn off deduplication** stores such files in full again. It uses more storage. Leave it off unless every incremental backup must hold its own copy.

## Retention keeps or deletes whole chains

Retention never deletes one backup out of a chain, because the backups after it would become useless. It deletes a chain with all its backups at once.

- **Keep at most** counts chains, not backups. The chain in progress is kept in addition.
- **Keep backups for** deletes a chain once its newest backup is older than that many days.
- The chain in progress is never deleted.
- The chain that holds the plan's newest successful backup is never deleted, however old it is.

For example, a plan has **Keep at most** set to 1, two finished chains and one chain in progress. The next hourly check deletes the older finished chain: its full backup and its incremental backups. The newer finished chain and the chain in progress stay. A plan set to keep one chain can therefore hold up to two on the storage.

On a **Plesk server** or **cPanel server** plan, a hosting account whose newest backup sits in an expired chain keeps its backups there. The other accounts' backups in that chain are deleted.

See [Schedules and retention](/docs/backups/schedules-retention) for the full rule.

## Restore an incremental backup

A restore of an incremental backup replays its chain: the full backup and every incremental backup up to the one you picked. Every one of them must still exist. Before you restore a **Files** plan's incremental backup, read what it overwrites, and which files it removes, on [Restore files, email and databases](/docs/restores/files-databases#files).

Each backup is read from the storage it was uploaded to. After a failover, the backups of one chain can sit on different storages. See [Failover between storages](/docs/storage/failover).

If one of them cannot be used, **Restore selected backup** in **Browse Backups** is greyed out. Hover over it to see why. The reason names the problem, such as a storage that no longer exists or a file index that is missing from storage.

<Note>
A download of a whole incremental backup holds only the files that changed in that run. A file or folder downloaded from **Contents** comes from the complete state at that point.
</Note>

## Next steps

<CardGroup cols="2">
<Card title="Schedules and retention" href="/docs/backups/schedules-retention" icon="layers">
How long backups and chains stay on your storage.
</Card>
<Card title="Run and stop a backup" href="/docs/backups/run-stop" icon="play">
Start a full or incremental backup by hand.
</Card>
</CardGroup>
