Thanks to your support I could get it done:
if once someone need a hint
DATE=$(date '+%Y-%m-%d' -d "1 day ago")
FILEall=$(pvesm list my.pbs --vmid 810 | grep ${DATE})
FILE=$(echo ${FILEall} | awk '{print $1}')
qmrestore ${FILE} 810 -storage...
hmm well this would work somehow if the pbs are mounted, but out of the box the pbs storage isn't.
Well I don't want to harm the backup infrastructure doing some hacky stuff..
Hey Guys,
I am thinking about a scheduled (via Cron?) automatic restore of VMs which have been backed up via PBS.
My first attempt was via CLI but I can set the date via variable but not the timestamp as wildcard.
qmrestore...