How to back up to your own SFTP or FTP server
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
- In the administrator panel (
https://<server>:2087), open Backup Jobs (section Websites). - Under Destinations, click Add destination.
- Name — for example
Backup server. - Storage — choose SFTP server or FTP server (TLS).
- Server / S3 endpoint — the server's name or IP address, for example
backup.example.comor203.0.113.20(nosftp://in front). - Access key / username — the login name.
- Secret key / password — the password.
- Bucket and folder (S3) / folder — the folder for the backups, for example
backups/server1. - Port (SFTP/FTP) — leave empty for the usual port:
22for SFTP,21for FTP. - 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.
Thank you — this helps us improve the article.
Still stuck?
Ask the AI about your exact situation — it answers from this knowledge base — or contact us.
Related articles
- How to add an external backup destination (off-server backups)
Keep backup copies off the server on S3-compatible storage, an SFTP or FTP server, Google Drive, OneDrive or Dropbox, then send a backup job there.
- How to create a backup job (schedule automatic backups)
Schedule automatic backups of files, databases and email — from every 15 minutes to monthly — with how many copies to keep and where to store them.
- Backup failed: how to read backup and restore errors
Where backup, snapshot and restore errors are shown, what the common messages mean, and how to fix failed backups and failed external copies.