Bacula-users

Re: [Bacula-users] Using `Where` on RunScript of a RestoreJob

2013-05-03 11:15:10
Subject: Re: [Bacula-users] Using `Where` on RunScript of a RestoreJob
From: Radosław Korzeniewski <radoslaw AT korzeniewski DOT net>
To: Renan Gonçalves <renan.saddam AT gmail DOT com>
Date: Fri, 3 May 2013 17:11:53 +0200
Hello,

2013/5/2 Renan Gonçalves <renan.saddam AT gmail DOT com>
Hi bacula users,

Given the following restore job scrap:

```
Job {
  Name = "RestoreJob"
  Type = restore
  ...
  RunScript {
     Command = "sh -c 'do something with %where'"
  }
}
```

When scheduling a new restore I dynamically set the `Where` property.
I use before/after commands to fix some permissions issues, yet I need to have a way to dynamically get the `Where` property into my command.

Is there a way to reference `Where` in my RunScript command? 


If you check a manual for RunScript variables substitution then you'll find that 'Where' property is not available. If you need this, just prepare a patch.

best regards
--
Radosław Korzeniewski
radoslaw AT korzeniewski DOT net
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>