On 04/04/2013 02:48 PM, Chris Hoogendyk wrote:
I may just quietly go nuts. I'm trying to run the command directly. In the debug file, one example is:

Mon Apr 1 08:05:49 2013: thd-32a58: sendsize: Spawning "/usr/local/libexec/amanda/runtar runtar daily /usr/local/etc/amanda/tools/gtar --create --file /dev/null --numeric-owner --directory /export/herbarium --one-file-system --listed-incremental /usr/local/var/amanda/gnutar-lists/localhost_export_herbarium_1.new --sparse --ignore-failed-read --totals ." in pipeline

So, I created a script working off that and adding verbose:

   #!/bin/ksh

OPTIONS=" --create --file /dev/null --numeric-owner --directory /export/herbarium
   --one-file-system --listed-incremental";
OPTIONS="${OPTIONS} /usr/local/var/amanda/gnutar-lists/localhost_export_herbarium_1.new --sparse
   --ignore-failed-read --totals --verbose .";

COMMAND="/usr/local/libexec/amanda/runtar runtar daily /usr/local/etc/amanda/tools/gtar ${OPTIONS}";
   #COMMAND="/usr/sfw/bin/gtar ${OPTIONS}";

remove the 'runtar' argument


   exec ${COMMAND};


If I run that as user amanda, I get:

   runtar: Can only be used to create tar archives


If I exchange the two commands so that I'm using gtar directly rather than runtar, then I get:

   /usr/sfw/bin/gtar: Cowardly refusing to create an empty archive
   Try `/usr/sfw/bin/gtar --help' or `/usr/sfw/bin/gtar --usage' for more
   information.



Reply via email to