Re: [Bacula-users] syntax error for "File" entry?
2008-11-20 10:01:45
Subject: |
Re: [Bacula-users] syntax error for "File" entry? |
From: |
Bruno Friedmann <bruno AT ioda-net DOT ch> |
Date: |
Thu, 20 Nov 2008 15:58:52 +0100 |
Win Htin wrote:
> Hi folks,
File = "\\|bash -c \"df -kFext3 -Fgfs|egrep -v \"Filesystem|mapper\" |cut -b
56- \""
bash -c "df -kFext3 -Fgfs|egrep -v \"Filesystem|mapper\" |cut -b 56- "
bash -c "df -kFext3 -Fgfs|egrep -v "Filesystem|mapper" |cut -b 56- ".
doesn't look the same or am I crazy :-)
There's race condition with the " and the different escape ...
perhaps a File = ' ..... ' enclose would give you the trick.
>
> On a CentOS 5.2 server running Bacula 2.4.3, I modified the "File" parameter
> in "FileSet" definition to the following:
>
> File = "\\|bash -c \"df -kFext3 -Fgfs|egrep -v \"Filesystem|mapper\" |cut -b
> 56- \""
>
> Checking the syntax from command line proves it is correct.
>
> --------------- start of sample output ------------------------------
> # bash -c "df -kFext3 -Fgfs|egrep -v \"Filesystem|mapper\" |cut -b 56- "
> /
> /boot
> /export
> ---------------------- end ----------------------------------------
>
> but when I try to run the backups from bconsole, I get the following error
> message.
>
> ----------------- start of error message -------------------------------
> 18-Nov 08:10 testserver-fd JobId 160: Fatal error: Error running program:
> bash -c "df -kFext3 -Fgfs|egrep -v "Filesystem|mapper" |cut -b 56- ".
> stat=2: ERR=Child exited with code 2
> *
> ------------------------ end ------------------------------------------
>
> Any ideas why the program is terminating with the above error?
>
> TIA
>
> Win
>
>
>
--
Bruno
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|