First of all, you didn't the docs carefully.
If you say 'File = "|command"', said command will be run by the director, on the director machine and - what's important if it's the same machine - in the context of bareos-dir user.
So if you want to run the comand on the client, you have to give it not as "|command", but as "\\|command".
Additionally to that you might - depending on your installation - encounter some problems with PATH variable or proper escaping so I'd suggest wrapping your command into a simple script, putting it in /usr/local/sbin on the client machine (let's say - myscript.sh) and putting 'File = "\\|/usr/local/sbin/myscript.sh"' into the fileset resource.
--
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 bareos-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/c5806bea-9612-4e96-8bf9-9c5a2251f845n%40googlegroups.com.