项目介绍 Github 地址: https://github.com/Corsinvest/cv4pve-autosnap 安装和使用 1 2 3 4 5 6 7 wget https://github.com/Corsinvest/cv4pve-autosnap/releases/download/v1.14.8/cv4pve-autosnap-linux-x64.zip unzip cv4pve-autosnap-linux-x64.zip mv cv4pve-autosnap /usr/bin/ chmod a+x /usr/local/bin/cv4pve-autosnap 使用 备份快照 1 2 3 4 5 6 7 8 9 10 11 SNAP_LIST="111,101" PVE_USER='root@pam' PVE_PASSWD='xxx' PVE_HOST='192.168.8.19' for vmid in ${SNAP_LIST//,/ };do cv4pve-autosnap --host=${PVE_HOST} \ --username=${PVE_USER} \ --password=${PVE_PASSWD} --vmid=${vmid} \ snap --label=daily --keep=3 done 查