This worked for me. It selects the latest successful job (FILESET)
```
CLIENT=FROM_CLIENT
RESTORE_CLIENT=TO_CLIENT
FILESET="DAILY_BACKUP"
BAREOS_RESTORE_COMMAND="restore client=$CLIENT restoreclient=$RESTORE_CLIENT
fileset="${FILESET}" where=/tmp/bareos-restores select current all done yes"
bconsole <<EOF
@output /dev/null
messages
@tee /tmp/log_restore_db.out
$BAREOS_RESTORE_COMMAND
messages
@output
quit
EOF
```
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.