How to Configure Duplicati Encrypted Backups on Linux VPS to Contabo Storage & S3
Contabo High-Performance Cloud VPS
Massive 4 vCPU cores, 8GB RAM, and 32TB monthly traffic. Ideal for Linux developers.
Protect your server files and databases against ransomware and accidental deletion. Learn how to configure Duplicati with AES-256 encryption on Linux VPS.
- Client-side AES-256 bit encryption ensures backup targets cannot read your files or databases
- Block-level incremental deduplication saves up to 80% of storage and network bandwidth
- Intuitive web interface to configure schedules, view backup history, and restore individual files
The Critical Rule of Zero-Trust Offsite Backups
Server snapshots provided by hosting companies are convenient, but they represent a single point of failure: if your hosting account is compromised, suspended due to a billing error, or suffers a datacenter catastrophe, those internal snapshots are lost. Furthermore, unencrypted database snapshots sent to third-party cloud storage violate client privacy agreements.
Duplicati is a free, open-source backup client that securely stores encrypted, incremental, deduplicated backups on remote storage targets (Contabo Storage VPS via SFTP/WebDAV, MinIO, AWS S3, Backblaze B2, or Google Drive). Data is encrypted locally with military-grade AES-256 encryption before transmission.
Step 1: Deploy Duplicati with Docker Compose
Create a dedicated directory for Duplicati on your Linux VPS:
mkdir -p /opt/duplicati && cd /opt/duplicati
nano docker-compose.yml
Paste the following compose configuration, mounting the root folders you wish to safeguard:
services:
duplicati:
image: lscr.io/linuxserver/duplicati:latest
container_name: duplicati
environment:
- PUID=0
- PGID=0
- TZ=UTC
volumes:
- ./config:/config
- ./backups:/backups
- /var/www:/source/var_www:ro
- /etc:/source/etc:ro
- /opt:/source/opt:ro
ports:
- "127.0.0.1:8200:8200"
restart: unless-stopped
Start Duplicati:
docker compose up -d
docker compose ps
Step 2: Nginx SSL Reverse Proxy & Web Protection
Route HTTPS traffic to Duplicati's web console on port 8200:
cat << 'EOF' > /etc/nginx/sites-available/backup.conf
server {
server_name backup.yourdomain.com;
location / {
proxy_pass http://127.0.0.1:8200;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
EOF
ln -s /etc/nginx/sites-available/backup.conf /etc/nginx/sites-enabled/
nginx -t && systemctl reload nginx
certbot --nginx -d backup.yourdomain.com --non-interactive --agree-tos -m admin@yourdomain.com
Step 3: Configuring a Backup Job to Contabo Storage VPS
Navigate to https://backup.yourdomain.com, set a master web password, and click Add Backup:
- General: Enter a job name (e.g., Production Server Full Archive) and define a strong AES-256 encryption passphrase.
- Destination: Select SFTP (SSH).
- Server: Enter your Contabo Storage VPS IP address.
- Port:
22 - Path:
/backups/production-vps/ - Credentials: Enter your Contabo Storage VPS SSH username and password/key.
- Source Data: Expand
/sourceand checkvar_www,etc, andopt. - Schedule: Select Run automatically every day at 3:00 AM.
- Options: Set volume block size to
50MBand retention policy to Smart backup retention (keeps 1 backup for the last 7 days, 1 for the last 4 weeks, and 1 for the last 12 months).
The Contabo Storage VPS Advantage
Contabo Storage VPS plans offer 800GB to 3.2TB of raw disk storage for under $10 to $17/month. Pairing Duplicati with a Contabo Storage VPS gives you terabytes of private offsite backup storage with zero per-gigabyte egress fees.
Step 4: Testing Disaster Restoration
A backup is only as good as its restore test. Under Duplicati's Restore menu, you can browse any snapshot date, select individual configuration files or folders, and restore them directly to their original location or export them as a zip file in seconds.
Recommended Reading & Related Guides
Frequently Asked Questions (FAQ)
Can Duplicati also back up directly to S3-compatible object storage?
Yes! In addition to SFTP, Duplicati natively supports Contabo Object Storage, Cloudflare R2, Backblaze B2, and Amazon S3 with client-side AES-256 encryption.
Summary
With Duplicati running automated AES-256 encrypted backups to Contabo Storage VPS, your data remains mathematically secure, ransomware-proof, and instantly recoverable.
Video Walkthrough & Official References
How to Use Docker Compose to Manage Containers on Linux VPS • syncbricks
Editorial Verdict: Pros & Cons
What We Love (Pros)
- Client-side AES-256 bit encryption ensures backup targets cannot read your files or databases
- Block-level incremental deduplication saves up to 80% of storage and network bandwidth
- Intuitive web interface to configure schedules, view backup history, and restore individual files
Drawbacks (Cons)
- Large multi-gigabyte initial backups can take several hours depending on upstream VPS network pipe
Deploy Your Contabo Cloud Server
Includes 4 vCPU Cores, 8GB RAM, 50GB NVMe SSD, and 32TB Outbound Traffic.
Written by Alex Vance
Cloud Infrastructure Architect
Alex and the ServerCraft engineering lab run routine benchmarks on over 25 web hosting providers, maintaining strict objectivity and reproducibility.
Recommended Next Reads
How to Deploy Docker & Docker Compose on Contabo VPS (Production Ready)
A complete guide to installing Docker Engine 26 and Docker Compose on Contabo Ubuntu 24.04 VPS. Includes Docker daemon tuning, UFW firewall integration, and a Traefik reverse proxy demo.
How to Build a Private Cloud with Nextcloud on Contabo VPS (Complete Guide)
Replace Google Drive and Dropbox with a self-hosted Nextcloud server on a Contabo high-storage VPS. Full guide with Docker, PostgreSQL, Redis caching, and Let's Encrypt SSL.
How to Backup and Restore a Linux VPS: Automated Restic & Rclone Strategy
A battle-tested disaster recovery blueprint using Restic, Rclone, and automated cron jobs to encrypt and sync full Linux server backups to remote S3 storage.