Skip to content

SFTP ​

Store backups on a remote server via SSH File Transfer Protocol. Supports password, private key, and SSH agent authentication.

Configuration ​

Credential Profile required

SFTP requires a Credential Profile of type SSH_KEY. Create one in Vault → Credentials before saving the destination.

FieldDescriptionDefaultRequired
NameFriendly name for this destination-✅
HostHostname or IP of the SFTP server-✅
PortSSH port22❌
LoginSSH_KEY credential profile (username + key or password)-✅
FolderRemote directory for backups. The folder button beside it browses the server from its top once the connection and its login are filled in-❌

Authentication Methods (via SSH_KEY profile) ​

Auth TypeDescription
passwordUsername + password
privateKeySSH private key (PEM format)
agentUse the host's SSH agent (keys loaded via ssh-add)

Select the auth type when creating the SSH_KEY credential profile in the Vault.

Setup Guide ​

  1. Create an SSH_KEY credential profile in Vault → Credentials (guide)
  2. Ensure the target server has SSH/SFTP enabled
  3. Create a dedicated user for backups (recommended):
    bash
    sudo useradd -m -s /bin/bash dbackup
    sudo mkdir -p /home/dbackup/backups
    sudo chown dbackup: /home/dbackup/backups
  4. Go to Connections → Destinations → New destination → SFTP
  5. Enter Host and pick the credential profile under Login
  6. (Optional) Set a Folder in the Location part to the remote backup directory (e.g. /home/dbackup/backups), or pick it with the folder button (📂)
  7. Click Test connection to verify the connection

Private Key Format

Paste the entire PEM key content including the -----BEGIN and -----END lines when creating the credential profile. Supports RSA, ED25519, and ECDSA keys.

How It Works ​

  • Files are uploaded via SFTP (SSH subsystem) - all transfers are encrypted in transit
  • DBackup creates subdirectories per job within the folder automatically
  • All credentials (passwords, private keys) are stored AES-256-GCM encrypted in the database

Troubleshooting ​

Connection Refused ​

connect ECONNREFUSED

Solution: Verify the host and port. Ensure the SSH service is running and the port is open in the firewall.

Authentication Failed ​

All configured authentication methods failed

Solution: Check username/password or private key. For key auth, ensure the public key is in the server's ~/.ssh/authorized_keys and file permissions are correct (chmod 600).

Permission Denied on Write ​

EACCES: permission denied

Solution: Ensure the SSH user has write access to the target directory. Check ownership and file permissions on the remote server.

Host Key Verification ​

Host key verification failed

Solution: DBackup accepts host keys automatically on first connection. If the server was reinstalled, the host key may have changed. This is expected after server reprovisioning.

Next Steps ​

Released under the GNU General Public License. | Privacy · Legal Notice