How to back up to your own SFTP or FTP server

For server administrators · Updated 2026-10-29

On this page
  1. Before you start
  2. Steps
  3. Good to know
  4. Common questions

You can keep your backups on another server you control, reached over SFTP (SSH) or FTP with TLS.

Before you start

  • A login (username and password) on the backup server, with a folder it may write to.
  • For FTP: the FTP server must support TLS (explicit FTPS). Plain FTP without encryption is not used.
  • If the backup server has a firewall, allow this server's IP address on the SFTP or FTP port.

Steps

  1. In the administrator panel (https://<server>:2087), open Backup Jobs (section Websites).
  2. Under Destinations, click Add destination.
  3. Name — for example Backup server.
  4. Storage — choose SFTP server or FTP server (TLS).
  5. Server / S3 endpoint — the server's name or IP address, for example backup.example.com or 203.0.113.20 (no sftp:// in front).
  6. Access key / username — the login name.
  7. Secret key / password — the password.
  8. Bucket and folder (S3) / folder — the folder for the backups, for example backups/server1.
  9. Port (SFTP/FTP) — leave empty for the usual port: 22 for SFTP, 21 for FTP.
  10. Click Save. The connection is tested and the result is shown at the top of the page.

Then choose the destination in a backup job.

Good to know

  • SFTP logs in with the password. There is no field for an SSH key.
  • The folder is relative to where the login starts and may contain letters, digits, ., -, _ and /. It is created if it does not exist.
  • Each account gets its own subfolder with its archives: <folder>/<account>/<account>-<date>-<time>-<id>.tar.
  • Old archives are deleted on the backup server when a job has more copies than it keeps, so the login needs permission to delete files in that folder.

Common questions

The test fails with "External storage: …". What should I check?

The rest of the message comes from the connection. Check the host name, the port, the username and password, that the backup server allows this server's IP, and for FTP that TLS is enabled on the FTP server.

Can I use a different SSH port?

Yes. Enter it in Port (SFTP/FTP), for example 2222.

Does the backup server need anything installed?

Only an SFTP (SSH) or FTP-with-TLS service and enough disk space. Nothing from this panel runs there.

Was this article helpful?

Still stuck?

Ask the AI about your exact situation — it answers from this knowledge base — or contact us.