I’ll have an automatic backup script, that verifies every backup directly afterwards:
qvm-backup-restore --verify-only "$BACKUP_LOCATION/qubes-backup-xxx"
The issue is finding out the date of the recent file name
qubes-backup-<date> . Currently I do this:
qvm-run --pass-io $DEST_VM "ls -1t "$BACKUP_LOCATION/" | head -1"
According to the docs,
--pass-io is unsafe, as copying something to
A different attempt has been to parse standard out.
qvm-backup -v outputs a timestamp in
-v/verbose mode that looks like:
<date time> [MainProcess selector_events.__init__:65] ..."
, which I hoped to be the source for the
qubes-backup-xxx file name. Unfortunately, the two are different in 1-2 seconds from time to time.
So how might I i retrieve the last qubes backup file name in