Restic Proxmox backup
configs and LXC data

Updated November 2026

PBS handles VM snapshots. Your /etc/pve configs and LXC data need offsite backup too, and Restic over HTTPS fills that gap.

Want whole VMs and containers offsite too? Add an offsite Proxmox Backup Server datastore to Proxmox VE.

On this page

What to back up from Proxmox with restic

Four kinds of Proxmox data belong offsite. Restic covers them at file level, alongside PBS for full VM images:

  • /etc/pve:VM configs, storage definitions, cluster config, firewall rules. Small but critical: without it you rebuild everything.
  • LXC rootfs data:Application data inside containers. Back up a ZFS snapshot rather than the live container.
  • /var/lib/vz:Templates, ISOs and local backup files. Large; include selectively.
  • /root and /home:Scripts, SSH keys, cron jobs and config on the host.
Restic covers configs and files. Whole VMs and containers belong in a Proxmox Backup Server datastore.
Ours adds to Proxmox VE as a normal PBS storage, with a token that can write and read backups but cannot delete them: PBS-500 $7/mo for 500 GB, or $70 a year with yearly billing. 30-day money-back on every paid plan.
Choose PBS-500, 500 GB

Install restic on the Proxmox host

Restic is packaged in the Debian repositories that Proxmox VE is built on, so one apt command installs it on the host:

Shell
apt update && apt install -y restic
restic version

Back up Proxmox configs

Back up /etc/pve daily: it is small and irreplaceable. This script covers the host configs that matter:

Shell
#!/bin/bash
source /etc/restic/env

restic backup \
  /etc/pve \
  /etc/network \
  /etc/cron.d \
  /root \
  --tag proxmox-configs \
  --exclude="/etc/pve/priv"

Run retention with your cleanup key from one trusted machine, never from the hosts you back up; see retention on ServerCrate vaults.

Back up LXC data using ZFS snapshots

On ZFS-backed Proxmox, snapshot the LXC dataset first so restic reads a consistent filesystem while the container keeps running:

Shell
#!/bin/bash
set -euo pipefail
source /etc/restic/env

CTID=110
DATASET="rpool/data/subvol-${CTID}-disk-0"
SNAPSHOT="${DATASET}@restic-$(date +%Y%m%d)"
MOUNT="/mnt/ct${CTID}-snap"

# Snapshot and mount
zfs snapshot "$SNAPSHOT"
mkdir -p "$MOUNT"
mount -t zfs "$SNAPSHOT" "$MOUNT"

# Back up
restic backup "$MOUNT" --tag "ct${CTID}"

# Clean up
umount "$MOUNT"
rmdir "$MOUNT"
zfs destroy "$SNAPSHOT"

Automate with systemd timer

Wire the scripts to a systemd timer to run nightly; the systemd timer guide has the complete unit files.

Offsite target: ServerCrate over HTTPS

Set RESTIC_REPOSITORY to your ServerCrate vault connection string: a private ZFS-backed vault, flat monthly pricing, and no egress fees when you restore during an incident.

Shell
export RESTIC_REPOSITORY="rest:https://vaultuser:YOUR_TOKEN@a1b2c3d4.vault.servercrate.net/"
export RESTIC_PASSWORD="your-repository-password"
restic init

Proxmox-specific restic considerations

pmxcfs mounts /etc/pve as FUSE; restic backs it up correctly and the plain-text configs restore cleanly.

For LXC databases, run restic inside the container and dump before each backup, on a systemd timer or cron. See the systemd timer guide for unit files.

Testing your Proxmox backup restores

Run restic check monthly against your vault. Each quarter, restore /etc/pve to a temporary location and check the files. The restore guide has commands for every scenario.

Next step: add the datastore to Proxmox VE

After checkout, your portal shows the five values to paste into DatacenterStorageAddProxmox Backup Server. Choose a client encryption key there and keep it off the host; without it nobody, including us, can read the backups. The setup steps show each field and the pvesm line for the shell.

PBS-500 fits a full homelab, every guest backed up nightly.
PBS-500 $7/mo for 500 GB, or $70 a year with yearly billing. 30-day money-back on every paid plan.
Choose PBS-500, 500 GB

Restic Proxmox backup FAQ

Restic backs up files, not VM disk images. For full VM snapshot and restore, use Proxmox Backup Server. Use restic for configs, LXC data, and file-level backup of application state.
Take a ZFS snapshot of the LXC dataset, mount it, run restic backup against the mount point, then destroy the snapshot. This gives you a consistent backup without stopping the container.
/etc/pve contains all your VM configs, storage definitions, and cluster state. It's small but irreplaceable. Back it up daily to an offsite target.
Daily for configs and LXC application data. Weekly or on-demand for larger datasets like PBS backup files. The first run is slow; incremental runs are fast.

Keep going

Start backing up Proxmox offsite.

Private vault. ZFS-backed. No egress fees.

Cancel anytime. 10 GB free tier never expires. No egress fees.