# Quickstart

> Run your first backup in about ten minutes.

This guide takes you from an empty panel to a finished backup. You add a server, a storage and a plan, then run the plan by hand.

## Prerequisites

- A Clokeep account with the Admin or Operator role. Sign in at [app.clokeep.com](https://app.clokeep.com).
- Root access to a Linux server, with outbound HTTPS to `app.clokeep.com`.
- A storage for the backups: an S3 bucket, an SFTP server or an FTP server. Both your server and the Clokeep panel must be able to reach it. See [Who connects to whom](/docs/how-clokeep-works#who-connects-to-whom).

## Run your first backup

<Steps>
<Step title="Add a server and install the agent">
Open **Servers** and click **New server**. Enter a name, such as `web-01`, and click **Create**.

<Frame caption="A new server needs only a name.">
![The New server form with its name field](/images/docs/quickstart-new-server.png)
</Frame>

The server's page opens. Under **Install agent on this server**, click **Generate install command**. Copy the command with the clipboard button and run it as root on the server.

Reload the server's page. **Agent status** shows **Online** once the agent checks in. If it does not, see [Install the agent](/docs/servers/install-agent).
</Step>
<Step title="Add a storage">
Open **Storages** and click **New storage**. Enter a **Name** and pick a **Driver**: **S3**, **SFTP** or **FTP**.

The connection and credential fields change to match the driver:

- [**S3**](/docs/storage/s3) needs a **Bucket**, a **Region**, an **Access key ID** and a **Secret access key**. For an S3-compatible service other than Amazon, add its **Endpoint** too.
- [**SFTP**](/docs/storage/sftp) needs a **Host**, a **Username**, and a **Password** or a **Private key**. Leave **Host key** blank: **Test connection** fetches the server's key and fills it in.
- [**FTP**](/docs/storage/ftp) needs a **Host**, a **Username** and a **Password**.

**Root path** is the folder your backups are written under.

Click **Test connection** at the top of the page. It tries your settings and tells you whether the storage is reachable. It saves nothing. The test runs from the Clokeep panel, not from your server. A pass does not prove that your server can reach the storage. Then click **Create**.

<Tip>
A Hetzner Storage Box is SFTP on port 23. Pick **SFTP** and set **Port** to 23.
</Tip>
</Step>
<Step title="Create a plan">
A Files plan backs up the folders you list on the server. Add one first. Open the server's page, choose the **Backup Paths** tab and click **New backup path**. Enter an absolute **Path**, such as `/var/www`, and click **Create**.

Open **Plans** and click **New plan**. Fill in:

- **Server**: the server you added.
- **Name**: for example `Website files`.
- **Type**: **Files**. Leave **Backup paths** empty to back up every path on the server.
- **Storages**: a new plan starts with one storage row. Pick your storage under **Storage**. Use **Add storage** only to add a second storage for failover.

Leave **Schedule** on **Manual runs only** for now. Click **Create**. The plan's page opens. The other plan types and options are on [Plans](/docs/backups/plans).
</Step>
<Step title="Run it now">
On the plan's page, click **Run now**. Confirm with **Run now** in the dialog.

A **Backup queued** message appears. Click **View run** in it.

If **Run now** is greyed out, hover over it to see why. A plan cannot run without an agent on its server, an active storage or something to back up. See [Run and stop a backup](/docs/backups/run-stop).
</Step>
<Step title="Check the result">
The run page shows the run as **Queued** until the agent picks it up, then **Running**. The progress card follows each step, from **Prepare** to **Upload** and **Index**. It refreshes on its own.

When the backup is done, the status reads **Completed** with the message "Backup completed successfully."

<Frame caption="A finished backup run.">
![The progress card of a completed run at 100 percent](/images/docs/quickstart-run-completed.png)
</Frame>

Every run is also listed under **Backup Runs**. If a run ends as **Failed**, open it. The timeline shows the error, and **Logs** lists every message the agent sent.
</Step>
</Steps>

To back up automatically, open the plan, pick a **Schedule** and click **Save changes**. Retention, in the same **Schedule & retention** section, decides when old backups are deleted. See [Schedules and retention](/docs/backups/schedules-retention).

To see what your backup holds, open **Browse Backups**. Check it now, before you need a restore. See [Browse a backup](/docs/restores/browse).

On a server without Plesk or cPanel, the agent restores files into `/var/lib/clokeep-restore` unless you allow other folders. See [Allowed folders](/docs/restores/files-databases#allowed-folders).

## Next steps

<CardGroup cols="2">
<Card title="Schedules and retention" href="/docs/backups/schedules-retention" icon="layers">
Run the plan on a timetable and choose how long its backups stay.
</Card>
<Card title="Browse a backup" href="/docs/restores/browse" icon="book">
See what your first backup holds, and how to restore it.
</Card>
</CardGroup>
