I’m trying to pass an argument to qvm-backup-restore as the backup location using
qvm-run -p backup 'ls $HOME/QubesBackup/* -t | head -1'
the command above will return the full path and filename of the last backup i made - works great.
but when i try to pipe that as an argument like this.
qvm-backup-restore --verify-only -d backup | qvm-run -p backup 'ls $HOME/QubesBackup/* -t | head -1'
it fails. it appears that qvm-backup restore executes then the qvm-run command executes.
qvm-backup-restore: error: the following arguments are required: backup_location /home/user/QubesBackup/qubes-backup-2021-08-06T000121'
I suspect I’m doing something wrong that’s simple to fix, but im no linux expert.
Any help would be appreciated