Hello all,
I’m hoping someone will be able to help me solve a problem that’s been causing me some frustration over the weekend. I’m working on a process to automate a restore jobs to confirm the validity of the backup jobs. The restore job will
restore a single file that gets created during the backup process. I’m trying to use RunScript to create that file and I’m having a very difficult time getting RunScript to redirect the output of the command to a file.
Here is the example of what I’m trying to accomplish.
RunScript {
RunsWhen = Before
Runs On Client = Yes
Command = "/bin/echo `/bin/hostname` > /usr/local/bacula/working/restore_file"
Command = "/bin/date +%%F >> /usr/local/bacula/working/restore_file"
}
I’ve tried many different forms of escaping the characters to no avail. It looks like Bacula just ignores everything after, and including, the greater than sign.
Does anyone have any ideas? On how I can get Bacula to do redirect output from a script to a file?
Thanks.
Rob Becker