Bacula-users

Re: [Bacula-users] using script output in fileset

2011-12-05 05:22:15
Subject: Re: [Bacula-users] using script output in fileset
From: Silver Salonen <silver AT serverock DOT ee>
To: bacula-users AT lists.sourceforge DOT net
Date: Mon, 05 Dec 2011 12:20:44 +0200
On 05.12.2011 12:00, Martin Simmons wrote:
>>>>>> On Fri, 02 Dec 2011 20:53:05 +0200, Silver Salonen said:
>> On 02.12.2011 17:30, Konstantin Khomoutov wrote:
>>> On Fri, 2 Dec 2011 16:47:38 +0400
>>> Konstantin Khomoutov<flatworm AT users.sourceforge DOT net>   wrote:
>>>
>>> [...]
>>>>    From the manual regarding the Bacula Director, it does not follow
>>>> that you can use "| ..." notation with Wild--you can only do this with
>>>> File, it seems.
>>>> So I'd go another route and make your script output everything that
>>>> matched your pattern in a way Bacula expects "| ..." to work, and then
>>>> just use that with File.
>>>> The script should be something like this:
>>>> #!/bin/sh
>>>> ls -1 "$1/*`date +%y%m%d`*"
>>> Well, on the second thought, the right tool for the job would rather
>>> be the `find` utility:
>>> #!/bin/sh
>>> find "$1" -mindepth 1 -maxdepth 1 \
>>>     -type f -name "*`date +%y%m%d`*" -print
>> The problem is that dir and fd are located on different machines, so I
>> can't use this method. Any other way to get dynamic content (current
>> year+month+day) into "Wild" parameter?
> You can use \| (or \\| inside quotes) to run the script on the fd.
>
> __Martin

Indeed. Thanks!

--
Silver

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
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>