Proxmox VE Cron LXC Updater

1670809835-16674-containers-1139935958

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 - https://github.com/tteck/Proxmox/raw/main/misc/update-lxcs-cron.sh)" -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 - https://github.com/tteck/Proxmox/raw/main/misc/cron-update-lxcs.sh)"