<< Back to tutorials

Troubleshooting Duplicity FTP Backups

Published {$created} by Carsten Blum


You're ready to safeguard your critical data using Duplicity to back up to an FTP server. Excellent choice! It's a powerful combination. But before your backups start flowing smoothly to edgeN.ftpgrid.com, let's be realistic – you might encounter a few snags. Many developers and businesses experience similar issues. This isn’s just about setting up a connection; it's about anticipating potential roadblocks.

Authentication Complications: Passwords vs. Keys

Often, the first hurdle people face is authentication. Using passwords with FTP is, frankly, a security risk. As many know, we highly recommend key-based authentication, particularly with SSH-ED25519. However, setting up SSH keys can be a bit daunting if you're new to the concept. You might struggle with generating keys, adding them to your account, and configuring Duplicity to use them. Remember, we support multiple authentication methods, including SSH-RSA and ECDSA-SHA2-NISTP256, but key-based authentication is the gold standard. For detailed guidance, see our tutorials/advanced-ssh-key-authentication-for-sftp/ for comprehensive steps.

Firewall and Network Configuration

Next up, firewalls and network configurations can be sneaky culprits. FTP (and especially SFTP) often requires specific ports to be open. Your firewall or network might be blocking these ports, preventing Duplicity from establishing a connection to edgeN.ftpgrid.com. This is especially common in corporate environments. Ensure that ports 21 (for FTP), or the SFTP port (typically 22) are allowed through your firewall. Passive mode FTP can sometimes circumvent these issues, but requires a bit of configuration on both your client and server.

Duplicity Configuration and Permissions

Duplicity itself requires careful configuration. Incorrect paths, insufficient permissions on the source data, or misunderstandings about encryption keys can all lead to backup failures. Double-check your Duplicity command-line options and ensure that the user account backing up has read access to the source data. If you're using encryption, make absolutely sure you haven’t lost the encryption key! Our tutorials/duplicati-sftp-cloud-storage/ offers a good starting point for Duplicity setup, but always review and adapt the instructions for your specific environment.

Understanding FTP Flavors: FTPS, SFTP, and SCP

Finally, it's easy to get confused about the different "FTP" flavors. FTP, FTPS, SFTP, and SCP all serve different purposes and have different security implications. SCP is largely outdated, so it's rarely a good choice. FTPS adds TLS/SSL encryption, but can be tricky to configure with some clients. SFTP (FTP over SSH) is the most secure and our recommended option. Make sure you're using the right protocol in your Duplicity configuration. If you'd like a refresher, take a look at our tutorials/ftp-101-scp-vs-sftp-limitations/

Navigating these potential pitfalls can be frustrating. Don't worry, we’re here to help! Our tutorials/ftp-cloud-storage-getting-started/ and tutorials/ftpgrid-free-tier-overview/ provide additional resources to get you started and explore our features. We also offer email support – our team is happy to assist!



Keywords: backup with Duplicity to FTP
Free signup
© 2025 ftpGrid

ftpGrid ApS
Branebjerg 24
DK-5471
Gamby
Denmark

Looking for an all-in-one time tracking, timesheet, and invoicing solution - visit our Devanux sister company Nureti at https://nureti.com.

Preview Devanux’s upcoming project Pictoguide – a visual support tool designed to bring structure and clarity to people with ASD.