# FTP storage

> Store backups on an FTP server, with or without TLS.

An FTP storage keeps your backups as files on an FTP server.

## Prerequisites

- A Clokeep account with the Admin or Operator role.
- An FTP account with a password, and a folder it may write to.
- Access to the FTP port and the server's passive data ports from each server you back up and from the Clokeep panel. See [Who connects to whom](/docs/how-clokeep-works#who-connects-to-whom). A server that accepts only known addresses must allow [the panel's addresses](/docs/how-clokeep-works#the-panels-addresses).

## Add the storage

<Steps>
<Step title="Open the form">
Open **Storages** and click **New storage**. Enter a **Name** and pick **FTP** under **Driver**.
</Step>
<Step title="Fill in the connection settings">
- **Host**: the server's host name, such as `backup.example.com`.
- **Port**: left empty, it is 21.
- **Root path**: the folder that holds your backups, such as `/backups`. The field starts at `/`.
- **Passive mode (panel only)**: on by default. It applies only to the panel's own connections: **Test connection**, downloads and retention deletes. The agent always uploads in passive mode.
- **Use SSL**: off by default. Turn it on to encrypt the connection with TLS.

Under **Credentials**, enter the **Username** and the **Password**.

<Frame caption="An FTP storage, filled in before Create.">
![The Create Storage form with the FTP driver, host, port, root path, passive mode and Use SSL toggles, and credentials](/images/docs/ftp-storage-form.png)
</Frame>
</Step>
<Step title="Test the connection">
Click **Test connection** at the top of the page. **Connection successful** means the panel signed in and listed your **Root path**. The test saves nothing.

The test runs from the Clokeep panel, not from your server. It does not prove that your servers can reach the FTP server, or that the account may write. The test writes nothing.
</Step>
<Step title="Create the storage">
Click **Create**, then add the storage to a plan under **Storages**.
</Step>
</Steps>

<Warning>
Without **Use SSL**, FTP sends the user name, the password and every file it transfers unencrypted.
</Warning>

## TLS

**Use SSL** starts TLS on the normal FTP port, as explicit FTPS. A server that only speaks implicit FTPS is not supported.

With TLS on, the agent and the panel both check the server's certificate. It must be signed by a trusted certificate authority and issued for the name in **Host**. The panel checks it before it sends the password.

A self-signed certificate, or one issued for another name, is refused. **Test connection** then fails with "The FTPS certificate of … could not be verified", followed by the reason. Use a certificate from a trusted authority, such as Let's Encrypt, and enter the host name it was issued for.

## Change the credentials

On the storage's page, the **Password** field is empty because the panel never shows it again. Leave it empty to keep the stored password, or type a new one to replace it.

## Next steps

<CardGroup cols="2">
<Card title="Failover between storages" href="/docs/storage/failover" icon="layers">
Add a second storage to a plan, and choose the folder each plan writes to.
</Card>
<Card title="SFTP storage" href="/docs/storage/sftp" icon="db">
Encrypt the connection with SSH instead.
</Card>
</CardGroup>
