Linux Backup Service
Built for the Command Line

ServerCrate gives Linux servers, VPS instances, and workstations a private encrypted offsite backup endpoint using Restic over SFTP. No proprietary agents, no cloud provider lock-in - just standard Restic pointed at a ZFS-backed private vault.

Why Linux Servers Need Offsite Backup

Linux servers - whether running at home, on a VPS, or in a data center - are exposed to a wide range of failure modes that local backups don't protect against: hardware failure, ransomware, accidental deletion, provider outages, and physical disasters.

A good Linux backup strategy follows the 3-2-1 rule: three copies of your data, on two different media types, with one stored offsite. ServerCrate provides the offsite component - an encrypted remote vault that stores your Restic snapshots in a different physical location from your server.

Installing and Configuring Restic on Linux

Restic is available in the official repositories for most major Linux distributions and installs in seconds.

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=sftp:vaultuser@vault.servercrate.net:22150:/data
RESTIC_PASSWORD=your-secret-token
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 ✓

Automating Linux Backups with systemd

The recommended way to automate Restic backups on modern Linux systems is a systemd service and timer pair. This gives you 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

A good Linux server backup strategy covers the directories that are either difficult to reproduce or critical to recovery:

  • /home- User data, dotfiles, SSH keys, and project files
  • /etc- System configuration, cron jobs, hosts, sudoers, and service configs
  • /var/www- Web application code and static assets
  • /opt- Third-party applications and self-hosted services
  • /var/lib/docker/volumes- Docker persistent volumes
  • Database dumps- Pre-backup dumps from PostgreSQL, MySQL, or SQLite

You generally don't need to back up /usr, /bin, /lib, or other OS directories - these can be reinstalled. Focus on the data and configuration that would be painful to recreate.

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 both mark old snapshots for deletion and reclaim the storage in one step.

Pricing for Linux Server Backup

ServerCrate plans are flat monthly pricing with no egress fees. Restore your backups as many times as needed without additional charges.

  • Free:10 GB, 1 device, 7-day retention
  • Starter ($5/mo):100 GB, 1 server, 30-day retention
  • Standard ($15/mo):500 GB, 3 servers, 60-day retention
  • Pro ($29/mo):1 TB, 5 servers, 90-day retention

Linux Distributions Supported

Restic is in the official repos for all major Linux distros. Debian/Ubuntu: apt install restic. Fedora/RHEL: dnf install restic. Arch: pacman -S restic. Alpine: apk add restic. Any Linux (binary): download the static binary from the Restic GitHub releases - no package manager or dependencies required.

Backing Up Linux Database Servers

For servers running PostgreSQL, MySQL, or MariaDB, dump the database to a file before running Restic, then back up the dump. Never back up live database files directly - this risks capturing an inconsistent state. For PostgreSQL: pg_dumpall > /var/backups/postgres/dump.sql as the postgres user, then include /var/backups in your Restic backup paths. See the systemd timer guide for chaining pre-backup hooks.

Frequently Asked Questions

Yes. Any Linux distribution that can run Restic and has SSH/SFTP support 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. Standard and Pro plans support multiple devices - 3 and 5 respectively - 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 - 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.

Related guides

Systemd Timer Guide VPS Backup Service Retention Policy Offsite Backup Server

Start backing up your Linux servers

Free plan, no credit card, vault ready in seconds. Works with every major Linux distro.

Start Free Full Setup Guide