ProxSweep

One command updates your whole Proxmox homelab — the host, every LXC, VMs and Docker — then checks everything came back.

v1.2.0 · MIT · single Bash script

What it does

Stop SSH-ing into each container. ProxSweep runs on the Proxmox host and sweeps the whole stack in one pass.

Host

Debian updates applied; Proxmox and kernel packages listed for you to install with a planned reboot.

LXC containers

apt, apk, dnf and opkg detected automatically — including the OS of containers that run Docker.

VMs

Updated through the QEMU guest agent. No SSH keys to manage.

Docker

Compose stacks via pull + up -d, so containers behind a VPN container are recreated together. Watchtower for the rest.

Safe by default

Built after real-world breakages: half-finished upgrades, containers that never came back, and failures logged as “OK”.

Snapshot first

Each guest is snapshotted before it changes. The log prints the exact rollback command.

Restarts that stick

Containers running old code are restarted and checked. Docker containers that stopped are started again.

Persistence checks

Flags guests without Start at boot and containers without a restart policy — and can fix them.

Guards

Skips guests that are low on disk, waits for busy package locks, and reports a stuck one.

Health checks

Flags full disks, full swap and processes killed for lack of memory — the slow problems Docker's “healthy” never shows.

Service checks

After the run, your web apps must answer — or it's an error.

Inventory

Reports new, removed, renamed and stopped guests since the last run.

Quick start

On the Proxmox host, as root.

  1. Install
    curl -fsSL -o /usr/local/bin/pve_stack_updater.sh \
      https://raw.githubusercontent.com/AkuchiS/ProxSweep/main/pve_stack_updater.sh
    chmod +x /usr/local/bin/pve_stack_updater.sh
  2. Check and preview — nothing is changed.
    pve_stack_updater.sh --check
    pve_stack_updater.sh --dry-run
  3. Schedule it nightly
    echo '0 3 * * * root /usr/local/bin/pve_stack_updater.sh >> /var/log/pve_stack_updater/cron.log 2>&1' \
      > /etc/cron.d/proxsweep

Settings live in /etc/proxsweep.conf and survive updates. Full options are in the README.

What a run looks like

===  [140] prismarr (LXC)
[ OK] snapshot proxsweep_20261122_141710 taken (undo with: pct rollback 140 …)
[ OK] packages upgraded (apt-get)
[ OK] compose 'prismarr': 2 container(s) recreated
[---] restarting: 13 process(es) still running old code
[ OK] restarted and running again
[ OK] all running Docker containers came back and have a restart policy
===  [121] byparr (LXC)
[ERR] only 407 MB free on /, so packages and Docker images were not updated
===  SERVICE CHECKS
[ OK] Prismarr — responding (HTTP 302)
  RESULT: 19 guests checked | 4 had package updates | 2 skipped | 9 warnings | 1 ERROR

Real output from a 20-container media server. Errors make the script exit with code 1, so cron mail or monitoring catches them.