On Friday, November 17, 2017 at 6:18:40 AM UTC-5, Nikitin Artem wrote:
> Hello.
>
> I’m executing a sequence of commands in the Fileset resource (File = “ls –l
> <some-dir> | awk ‘{print $NF}’ etc. . .). I need this, for getting the list
> of files to backup .
>
> The problem is, these commands is executing on Director, not Client.
>
>
> How to execute them remotely (on FIledaemon’s host). Please help.
To run commands client-side, you can use "Client Run Before Job" or "Client Run
After Job". You can also look at "Run Script", although I've never used it. You
can find them on (or near) pages 70 and 80 of the manual, section 9.2.
You could then use this to run a script that creates a list of files and writes
to a file which you might call files.txt. You can then put something like this
in your FileSet:
File = "\\</home/user/files.txt"
See page 94 of the manual about the less-than sign: "<".
Hope this helps,
oldtechaa
--
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.