I'm playing around with proxmox-backup-client and (bash) scripts. Everything works great so far, including "fixed" --excludes parameters.
Working example:
Non-working example:
Even non-working example:
So what's the point I'm missing here by using variables for excludes?
Working example:
Code:
BACKUPNAME="AllWithoutHome"
mount /dev/sda1 /mnt -o ro,noatime
proxmox-backup-client backup ${BACKUPNAME}.pxar:/mnt --backup-id ${BACKUPNAME} --all-file-systems --skip-lost-and-found --verbose true --exclude '/home/user/*'
umount /mnt
Non-working example:
Code:
BACKUPNAME="AllWithoutHome"
EXCL="--exclude '/home/user/*'"
mount /dev/sda1 /mnt -o ro,noatime
proxmox-backup-client backup ${BACKUPNAME}.pxar:/mnt --backup-id ${BACKUPNAME} --all-file-systems --skip-lost-and-found --verbose true ${EXCL}
umount /mnt
Even non-working example:
Code:
BACKUPNAME="AllWithoutHome"
EXCL="'/home/user/*'"
mount /dev/sda1 /mnt -o ro,noatime
proxmox-backup-client backup ${BACKUPNAME}.pxar:/mnt --backup-id ${BACKUPNAME} --all-file-systems --skip-lost-and-found --verbose true --exclude ${EXCL}
umount /mnt
So what's the point I'm missing here by using variables for excludes?
Last edited: