Updated November 2026
Provider snapshots share your VPS's failure domain. Real backup is independent, encrypted, offsite storage only you can read.
Provider snapshots help with quick rollbacks after a bad deploy. But they sit in the same datacenter, are often unencrypted, are controlled by the same account, and vanish with a suspension, outage or provider failure.
Independent offsite backup lives elsewhere, is encrypted with a key only you hold, and stays reachable whatever happens to your VPS provider. Restic to a separate provider gives you an encrypted offsite backup that survives provider-level failures.
A typical web or self-hosted VPS has a predictable set of data worth protecting:
This script dumps your databases, backs up the important paths to your vault and cleans up the dumps:
#!/bin/bash
set -euo pipefail
source /etc/restic/env
# Database dumps
pg_dumpall -U postgres > /tmp/pg_backup_$(date +%Y%m%d).sql 2>/dev/null || true
mysqldump -u root --all-databases > /tmp/mysql_backup_$(date +%Y%m%d).sql 2>/dev/null || true
# Back up everything
restic backup \
/etc /var/www /home /opt \
/tmp/pg_backup_*.sql \
/tmp/mysql_backup_*.sql \
--tag "$(hostname)" \
--exclude="/var/www/*/node_modules" \
--exclude="*/cache" \
--exclude="*/.git"
# Clean dumps
rm -f /tmp/pg_backup_*.sql /tmp/mysql_backup_*.sql
Run retention with your cleanup key from one trusted machine, never from the hosts you back up; see retention on ServerCrate vaults.
Store the vault URL and repository password in a root-only env file, then initialize the repository once:
sudo mkdir -p /etc/restic
sudo tee /etc/restic/env <<EOF
RESTIC_REPOSITORY=rest:https://vaultuser:YOUR_TOKEN@a1b2c3d4.vault.servercrate.net/
RESTIC_PASSWORD=your-strong-repository-password
EOF
sudo chmod 600 /etc/restic/env
restic init
Every plan supports multiple devices: 25 on Standard, 50 on Pro. A web server, a database server and a monitoring host can all back up to one ServerCrate vault, and Restic deduplicates shared files across them, for one flat monthly fee.
The alternative to a second VPS is hosted backup server storage, encrypted before it leaves your machine.
Schedule unattended backups with systemd timers, using Persistent=true to catch runs missed during a reboot. The systemd timer guide has copy-paste units. On older images, a nightly cron entry with logging works too.
restic restore.Flat pricing. No egress fees. Start free.
Cancel anytime. 10 GB free tier never expires. No egress fees.