Update pbs-zfs-daily.sh

Fixed Combination Shutdown/Backup
This commit is contained in:
Chriz
2025-04-16 15:46:59 +02:00
committed by GitHub
parent 32889c6231
commit 6811c14f0b

View File

@@ -45,7 +45,7 @@ echo "checkzfs_spool=1" >> /etc/bashclub/$SOURCEHOST.conf
echo "checkzfs_spool_maxage=90000" >> /etc/bashclub/$SOURCEHOST.conf echo "checkzfs_spool_maxage=90000" >> /etc/bashclub/$SOURCEHOST.conf
/usr/bin/bashclub-zsync -d -c /etc/bashclub/$SOURCEHOST.conf /usr/bin/bashclub-zsync -c /etc/bashclub/$SOURCEHOST.conf
# Updating Miyagi Host to latest Proxmox VE (no major Version Upgrades!) # Updating Miyagi Host to latest Proxmox VE (no major Version Upgrades!)
@@ -74,14 +74,14 @@ fi
if [[ "$BACKUPSERVER" == "no" ]]; then if [[ "$BACKUPSERVER" == "no" ]]; then
echo No Backup configured in this Run echo No Backup configured in this Run && exit
[[ "$SHUTDOWN" == "yes" ]] && shutdown [[ "$SHUTDOWN" == "yes" ]] && shutdown now
fi fi
sleep 5
if [[ "$BACKUPSERVER" == "no" ]]; then if [[ "$BACKUPSERVER" == "yes" ]]; then
echo No Backup configured in this Run echo No Backup configured in this Run
[[ "$SHUTDOWN" == "no" ]] && exit
fi fi
PRUNEJOB=$(ssh $PBSHOST proxmox-backup-manager prune-job list --output-format json-pretty | grep -m 1 "id" | cut -d'"' -f4) PRUNEJOB=$(ssh $PBSHOST proxmox-backup-manager prune-job list --output-format json-pretty | grep -m 1 "id" | cut -d'"' -f4)