I'm taking backups with Bareos and would like to verify my database backup every once in a while.
For this I have set up a separate host called backupvalidator. I know how I can restore the files to this host via bconsole commands, where I list the jobs that were running lately, pick the right job and specify the file path and which files to restore.
What I can't figure out, is, how I can specify this job in a config file. In the manual there's this example:
Job {
Name = "RestoreFiles"
Type = Restore
Client = Any-client
FileSet = "Any-FileSet"
Storage = Any-storage
Where = /tmp/bareos-restores
Messages = Standard
Pool = Default
}
But I can't find an option, with which I can specify from which client to which client I want to restore. It seems like I can only specify in the job, that the files are restored on the same client, the backup was taken from.
Is it not possible to automate it this way? Is my only option to have a cronjob, that copies the backup files to my backupvalidator host?
Best Answer
Job type "Restore" is not intended for actual job definitions, but as a template for running restore in the console.
From the manual, section 9.2, on (Job) Type=Restore: