Linux backup service
built for the command line

Updated November 2026

Private encrypted offsite backup for Linux servers, VPS instances and workstations: standard Restic over HTTPS to a ZFS-backed vault.

On this page

Why Linux servers need offsite backup

Local backups do not survive hardware failure, ransomware, accidental deletion, provider outages or a fire. Linux servers at home, on a VPS or in a data center need a copy somewhere else.

The 3-2-1 rule means three copies, on two media types, one offsite. ServerCrate is the offsite copy: Restic snapshots in an encrypted vault in a different physical location.

If you would rather not run your own backup VPS, backup server hosting gives you a private Restic vault on ZFS.

This guide works with any restic REST server.
Ours is zero-knowledge and ready in a minute: Starter $3/mo for 250 GB, or $30 a year with yearly billing. 30-day money-back on every paid plan.
Choose Starter, 250 GB

Installing and configuring Restic on Linux

Restic is in the official repositories of most distributions: no agents and no lock-in.

bash: install Restic and configure ServerCrate
# Debian / Ubuntu
$ sudo apt install restic
 
# Fedora / RHEL / CentOS
$ sudo dnf install restic
 
# Arch Linux
$ sudo pacman -S restic
 
# Store credentials securely
$ sudo mkdir /etc/restic && sudo chmod 700 /etc/restic
$ sudo cat > /etc/restic/env << EOF
RESTIC_REPOSITORY=rest:https://vaultuser:YOUR_TOKEN@a1b2c3d4.vault.servercrate.net/
RESTIC_PASSWORD=your-encryption-password
EOF
$ sudo chmod 600 /etc/restic/env
 
# Initialize and run first backup
$ source /etc/restic/env && restic init
$ restic backup /home /etc /var/www /opt
snapshot a2f4e91c saved OK

Automating Linux backups with systemd

Use a systemd service and timer pair: precise scheduling, logging via journald, and dependency management.

/etc/systemd/system/restic-backup.timer
[Unit]
Description=Daily Restic backup to ServerCrate
 
[Timer]
OnCalendar=daily
RandomizedDelaySec=1h
Persistent=true
 
[Install]
WantedBy=timers.target

What to back up on a Linux server

Back up what is hard to rebuild:

  • /homeUser data, dotfiles, SSH keys, and project files
  • /etcSystem configuration, cron jobs, hosts, sudoers, and service configs
  • /var/wwwWeb application code and static assets
  • /optThird-party applications and self-hosted services
  • /var/lib/docker/volumesDocker persistent volumes
  • Database dumpsPre-backup dumps from PostgreSQL, MySQL, or SQLite

Skip /usr, /bin, /lib and other OS directories; a reinstall brings them back.

Restic retention policies

Restic's forget command prunes old snapshots based on your retention policy. A sensible default for most Linux servers:

  • Keep the last 7 daily snapshots
  • Keep the last 4 weekly snapshots
  • Keep the last 6 monthly snapshots

Run forget with --prune to drop old snapshots and reclaim space in one step, using your cleanup key from one trusted machine, never from the hosts you back up. See retention on ServerCrate vaults.

Pricing for Linux Server Backup

Flat monthly pricing, and restores are always free.

  • Free:10 GB, 2 devices, 7-day retention
  • Lite ($2/mo):100 GB, 3 devices, 14-day retention
  • Starter ($3/mo):250 GB, 10 devices, 30-day retention
  • Standard ($9/mo):1 TB, 25 devices, 60-day retention
  • Pro ($17/mo):2 TB, 50 devices, 90-day retention
  • Business ($45/mo):5 TB, 100 devices, 180-day retention

Linux distributions supported

Restic is in the official repos of every major distro. Debian/Ubuntu: apt install restic. Fedora/RHEL: dnf install restic. Arch: pacman -S restic. Alpine: apk add restic.

Backing up Linux database servers

For PostgreSQL, MySQL or MariaDB, dump the database to a file first and back up the dump; live database files risk an inconsistent state.

For PostgreSQL: pg_dumpall > /var/backups/postgres/dump.sql as the postgres user, then include /var/backups in your Restic paths. The systemd timer guide covers chaining pre-backup hooks.

Next step: your first offsite backup

On a Linux server, our installer does the setup in one line: it installs restic, creates your encryption password on your machine, takes a first snapshot and schedules a daily backup. The Vault page in your portal shows this line with your vault filled in.

Linux, one-line installer
curl -fsSL https://servercrate.net/install.sh | sudo sh -s -- --repo "rest:https://vaultuser:YOUR_TOKEN@a1b2c3d4.vault.servercrate.net/"

Add --dry-run to see what it would do without changing anything. On macOS or Windows, or to do it by hand, follow the setup guide.

Starter fits most single servers and small homelabs.
Starter $3/mo for 250 GB, or $30 a year with yearly billing. 30-day money-back on every paid plan. Or start with 10 GB free, no card.
Choose Starter, 250 GB

Linux backup service FAQ

Yes. Any Linux distribution that can run Restic works with ServerCrate. Restic is available in official repos for Debian, Ubuntu, Fedora, RHEL, Arch, and Alpine. For others, install the static binary from GitHub.
Yes. Every plan supports multiple devices (25 on Standard, 50 on Pro), all deduplicating to the same vault. Each server backs up to its own path within the repository. Files shared across servers are stored only once.
Use restic backup /home --exclude /home/user/.cache --exclude /home/user/Downloads. You can also use an exclude file with --exclude-file. Common excludes: /proc, /sys, /dev, /run, /tmp, and package manager caches.
Yes, it is one of the most common use cases. A VPS can back up /etc, /var/www, /opt, and database dumps to a ServerCrate vault nightly. This protects against provider outages, accidental deletions, and misconfiguration disasters. See the VPS backup service page.

Keep going

Flat monthly pricing. No egress fees.

  1. Free10 GB · forever
  2. Lite100 GB · $2/mo
  3. Starter250 GB · $3/mo
  4. Standard1 TB · $9/mo
  5. Pro2 TB · $17/mo
  6. Business5 TB · $45/mo
See full pricing →