Skip to content

BackupPC: deduplicated host backups for small fleets

How BackupPC pulls backups from many hosts, deduplicates across them, and presents one web UI for restores — a working install, the pool model, and where it still earns its keep in 2026.

BackupPC is one of the oldest open-source backup-orchestration tools — it dates from the early 2000s and is still in active use because nothing has quite replaced its specific shape: pull-based backups over rsync/SMB/tar from many hosts, content-addressed deduplication across the whole fleet, and a serviceable web UI for browsing and restoring. We don’t deploy new BackupPC environments often, but several engagements we run inherited one and continue to operate it. This article covers a working install, the pool model that makes the dedup work, and the operational notes that keep it healthy.

How to verify

After install, the operational surface is a single web UI and a per-host status:

systemctl status backuppc
ss -tlnp | grep apache2
ls /var/lib/backuppc/
sudo -u backuppc /usr/share/backuppc/bin/BackupPC_serverMesg status info
# UI: http://<host>/backuppc/ (htpasswd-protected)

The directory under /var/lib/backuppc/cpool/ is the content-addressed deduplication pool. Every file ever backed up across every host is stored once there, referenced from per-host backup directories by hash.

What’s happening

BackupPC runs as a server that periodically connects to each backup target (push from the target via the BackupPC server pulling, technically) over rsync, rsyncd, SMB, or tar — whatever the host supports. It receives the file streams, hashes each file’s content, and stores it in the pool if no copy exists yet. The per-host backup directory becomes a tree of hardlinks/symlinks to the pool entries.

The dedup ratio is the value proposition: 30 hosts running similar OSes share most of their /usr and /etc — BackupPC stores those files once. Real-world pools we have seen show 5-20x dedup ratios on Linux fleets.

The retention model uses “fulls” and “incrementals” the way Bacula does, but the dedup makes “full” essentially free in storage terms — only the per-host metadata is new, the file content is already in the pool. Restores read from the pool through the per-host hardlink tree and stream files back via rsync, tar, or zip.

The UI is CGI-based, simple, and battle-tested. Restoring a single file is a click; restoring a whole host is BackupPC_archive or a “restore all to a temp dir” workflow.

The procedure

  1. Install BackupPC and Apache on the server.

    apt install -y backuppc apache2 rsync
    systemctl enable --now apache2
    systemctl enable --now backuppc

    The installer prompts for the admin password (htpasswd) and the server name.

  2. Open the UI at http://<server>/backuppc/ and log in as backuppc. The “Edit Config” → “Server” page is where global settings live; “Edit Hosts” is where you declare each host to back up.

  3. Add a host. Each host gets a config under /etc/backuppc/<hostname>.pl. The minimum:

    $Conf{XferMethod} = 'rsync';
    $Conf{ClientNameAlias} = 'acme-web-01.internal';
    $Conf{RsyncShareName} = ['/etc', '/var/www', '/home'];
    $Conf{RsyncClientPath} = '/usr/bin/rsync';
    $Conf{RsyncSshArgs} = ['-e', '/usr/bin/ssh -i /var/lib/backuppc/.ssh/id_backuppc -l backup'];
  4. SSH key out to the host. BackupPC pulls; the host runs an unprivileged user that has rsync access to the directories you want to back up, or a sudo-wrapped rsync for root-owned content.

    sudo -u backuppc ssh-keygen -t ed25519 -f /var/lib/backuppc/.ssh/id_backuppc -N ""
    ssh-copy-id -i /var/lib/backuppc/.ssh/id_backuppc.pub backup@acme-web-01
  5. Schedule the backup. BackupPC has its own scheduler — full/incremental cadence is per-host in the UI.

    $Conf{FullPeriod} = 6.97;     # full backup ~weekly
    $Conf{IncrPeriod} = 0.97;     # incremental ~daily
    $Conf{FullKeepCnt} = [4, 2, 1];  # keep 4 fulls, 2 monthlies, 1 yearly
    $Conf{IncrKeepCnt} = 14;
  6. Force a first backup from the UI to validate the chain. The first full will be slow; subsequent fulls are fast because of pool dedup.

  7. Try a restore. From the host’s status page, drill into the most recent backup, browse the file tree, select files, choose “Restore selected files” → direct via rsync, tar archive download, or zip.

Operational notes

  • The pool is the precious thing. If you lose the pool, you lose every backup of every host. Back the pool up too — typically via rsync --hard-links to a second server. The hardlinks must be preserved or the dedup is gone.
  • BackupPC v4 changed the pool format (rsync-checksum-keyed instead of file-content-keyed). Migrations from v3 to v4 are one-way and require a fresh pool. We have run those migrations; budget time.
  • The web UI is CGI under Apache. It is performant for small fleets (≤50 hosts); beyond that it gets sluggish. For larger fleets, the per-host CLI (BackupPC_dump, BackupPC_restore) is the practical interface.
  • File counts past ~10 million per host strain the per-host metadata. We exclude node_modules, .git, tmp/, and similar churn directories at the rsync exclude level.
  • BackupPC over SMB is functional but slow and limited. Use rsync/rsyncd if at all possible; SMB is a fallback for Windows hosts where you cannot install rsync.
  • The pool only deduplicates whole-file. Two files differing in one byte both land in the pool. For block-level dedup (database files, VM images), use restic or BorgBackup; BackupPC is the wrong tool.

In the engagements we run, BackupPC is the choice when we inherit an existing deployment running smoothly and the dedup ratio is doing real work. For greenfield, we usually pick BorgBackup or restic, which deduplicate at the block level and have better cloud-target stories. The operating model we wrap around whatever tool is in place is at /en/services/managed-operations/.