Skip to content
AutoRPO

What AutoRPO changes on your host

AutoRPO is closed source, so you can't read its code to see what it does. This page lists everything instead: every file and Proxmox object it creates, and how to remove each of them.

What it runs as #

AutoRPO runs as two services, so the part you reach over the network isn't the part with root:

  • autorpo-web.service, the web interface, runs as its own unprivileged user, autorpo, which has no login shell. It can't run commands on the host or read stored passwords, tokens or keys. For anything that changes, it asks the restore service for one of a fixed list of actions through a local socket. Its access to the system is otherwise read-only. It listens on one port, TCP 8443.
  • autorpo.service, the restore service, runs as root because it restores and starts test copies with Proxmox's own tools. It listens on no network port. The system's programs and the configuration in /etc are read-only to it, except Proxmox's configuration, the network configuration (for the isolated bridge), LVM and iSCSI. It can still write its own data folder and the restore storage, and it can't load kernel modules.
  • autorpo-update.service installs AutoRPO updates with apt. It runs at your maintenance time, or straight away when you choose to move to a newer major version.

Root on the restore host is still root, which is why AutoRPO belongs on a dedicated, standalone host and not on a production node. Its access to your backups is read-only either way (see below).

All three services run with a private /tmp and can't see /home. AutoRPO's own files are readable by root and the autorpo group only, and its keys and its backups of itself by root only. AutoRPO doesn't accept any other inbound connections, and we have no way to connect to it.

Files #

Path What it is Removed by
/opt/autorpo/ The program apt remove
/usr/bin/autorpo Link to the command-line tool apt remove
/usr/lib/systemd/system/autorpo.service, autorpo-web.service, autorpo-update.service The three services apt remove
/usr/lib/modules-load.d/autorpo.conf, /usr/lib/modprobe.d/autorpo.conf Kernel modules loaded at boot for reading Windows backups, Hyper-V shares and the isolated network (nbd, ntfs3, fuse, cifs, veth) apt remove
/usr/lib/tmpfiles.d/autorpo.conf, /run/autorpo/ The local socket between the web interface and the restore service apt remove (the folder and loaded modules go at the next reboot)
/etc/apt/preferences.d/autorpo-licence Keeps apt within your major version and off versions your licence doesn't cover Delete by hand
User and group autorpo The web interface's unprivileged account (no login) Stays after apt purge; deluser autorpo removes it
/etc/autorpo/config.toml Listening address, port and data folder apt purge
/var/lib/autorpo/ Database, keys, screenshots, Restore Evidence Reports, AutoRPO's backups of itself, and a copy of the host's Proxmox certificate for the web interface apt purge

Proxmox objects on the restore host #

AutoRPO creates these through the Proxmox API, so each one appears in the Proxmox web interface like anything you made yourself:

What Name When
PBS storage entries arpo-<server>-<datastore> One for each datastore or namespace you tick. The token secret is in Proxmox's own secret file, /etc/pve/priv/storage/<id>.pw. Storages you adopt are used as they are and never changed.
The isolated bridge vmbr99, or the next free name Only if you choose Create vmbr99 and use it (the button names the free bridge). It has no physical port and no host address.
Test copies VMIDs 9000 to 9999, tagged autorpo While a test runs, until it's signed off, or for 3 days if nobody signs it off.
A temporary router Network namespace autorpo-gw, with one link (arpogw-br) into the isolated bridge Only while running copies on different subnets need to reach each other. It has no route out, is never saved in the network configuration, and is gone after a reboot.

Apart from these, its own files above and the apt setting that keeps updates within your licence, AutoRPO never edits or deletes anything on the host. It only deletes guests in its VMID range that are tagged autorpo, or that it recorded creating there. It only changes its own storage entries and its own bridge. If other network changes are waiting to be applied in Proxmox, it refuses to create the bridge, because applying its change would apply yours too.

On your Proxmox Backup Server #

If you choose Create a read-only token for me when adding a PBS server, AutoRPO uses the admin login once to create:

  • a user, autorpo@pbs;
  • an API token for that user;
  • the DatastoreReader role on all datastores (/datastore, inherited), for the user and the token. To limit it to some datastores, create the token yourself with I have a token.

Then it forgets the admin login. DatastoreReader can read and verify backups but can't write, prune or delete them, and PBS enforces that, not AutoRPO. You can check the permissions yourself in PBS under Configuration → Access Control → Permissions.

AutoRPO refuses credentials that can do more than read. That includes root@pam, including on a storage you adopt. You can also create the user and token yourself and paste them in; the setup page shows the exact commands.

Load on PBS and your network #

  • One restore at a time. Each test reads the whole backup once from PBS.
  • Only in its restore windows. The windows are worked out from your backup times, so restores run in the gaps between backup jobs (by default 06:00 to 19:00 every day, and continuously from Saturday 04:30 to Monday 06:00). You can add weekly pauses, for example during month-end.
  • Restores wait while PBS verifies a datastore.
  • An optional read limit. Settings → Restore target → Limit restore reads from PBS caps how fast a restore reads, in MB/s, to leave bandwidth for backups and other traffic.

At 1 Gbit/s, a 500 GB VM takes more than 70 minutes to restore. At 10 Gbit/s, your storage sets the pace. See Schedule and Requirements.

For Hyper-V sources #

Only when you add a Hyper-V share (Windows Server Backup or exports):

  • The share is mounted read-only (CIFS, SMB 3.0) under /var/lib/autorpo/mnt/ while AutoRPO reads it, with the password passed through a root-only temporary file. It's unmounted afterwards.
  • To prove the account can't write, AutoRPO briefly mounts the share read-write and tries to create one test file (.autorpo-rw-test-…). If that works, it deletes the file and refuses the share. This happens when you add or check the share, and at most once a day after that.
  • Windows Server Backup images are opened read-only, using the nbd module the package loads at boot.
  • The package depends on cifs-utils and ntfs-3g for this, so apt installs them with AutoRPO.

Firewall #

Direction Port What for
Your browser to the restore host TCP 8443 AutoRPO's web interface (the port can be changed)
Your browser to the restore host TCP 8006 The Proxmox console, to look at a test copy
Restore host to PBS TCP 8007 Reading backups
Restore host to the Windows file share TCP 445 Hyper-V sources only: reading backups and exports, read-only
Restore host to apt.autorpo.com TCP 443 Updates, and the list of which major versions still get security fixes (or copy the package across)
Restore host to licence.autorpo.com TCP 443 The daily licence check-in, a check-in before each update, and fleet reports if you turn them on, and problem reports only when you press Send (or activate offline and send nothing)
Restore host to your mail server or alert services Your choice (SMTP, or TCP 443) Optional: email, Teams, Slack and webhook alerts you set up
Restore host to your S3 storage TCP 443 Optional: the offsite copy of AutoRPO's own backups
Restore host to a time-stamping service TCP 80 or 443 Optional timestamps on Restore Evidence Reports; only the PDF's SHA-256 is sent

Proxmox VE has no firewall rules on by default. If you've turned on the Proxmox firewall for the host, allow TCP 8443 in.

Removing AutoRPO completely #

apt remove autorpo stops the service and removes the program, but keeps your settings and test history. apt purge autorpo removes those too.

Neither command touches your Proxmox configuration or your PBS, so remove these by hand if you no longer want them:

  1. Test copies: in the Proxmox web interface, delete any guests in VMIDs 9000 to 9999 that are tagged autorpo.
  2. Storage entries: under Datacenter → Storage, remove the entries whose names start with arpo-. This removes the connection only; the backups on PBS are untouched.
  3. The isolated bridge: under System → Network, remove it (vmbr99 unless you chose another), then Apply Configuration.
  4. On PBS: under Configuration → Access Control, remove the autorpo@pbs user (its tokens go with it), and any entries for it left under Permissions.
  5. On the restore host: delete /etc/apt/preferences.d/autorpo-licence, and remove the autorpo user with deluser autorpo.