Proxmox VE Cron LXC Updater


This script will add/remove a crontab schedule that updates all LXCs every Sunday at midnight.

To exclude LXCs from updating, edit crontab (crontab -e) and add CTID as shown in the example (-s 103 111)

example: 0 0 * * 0 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin /bin/bash -c "$(wget -qLO -" -s 103 111 >>/var/log/update-lxcs-cron.log 2>/dev/null

Run the command below in the Proxmox VE Shell.

bash -c "$(wget -qLO -"