On Thu, Apr 04, 2013 at 17:48:46 -0400, Chris Hoogendyk wrote:
> 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}";
>
> exec ${COMMAND};
>
>
> If I run that as user amanda, I get:
>
> runtar: Can only be used to create tar archives
(Personally I'd do my initial investigation using gtar directly, but I see
that runtar prints that error message when it finds that argv[3] isn't
"--create", and also that it expects argv[1] to be the config name. So I
think it would work if you just left out the standalone "runtar " from
the command:
COMMAND="/usr/local/libexec/amanda/runtar daily
/usr/local/etc/amanda/tools/gtar ${OPTIONS}"
)
Nathan
----------------------------------------------------------------------------
Nathan Stratton Treadway - [email protected] - Mid-Atlantic region
Ray Ontko & Co. - Software consulting services - http://www.ontko.com/
GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt ID: 1023D/ECFB6239
Key fingerprint = 6AD8 485E 20B9 5C71 231C 0C32 15F3 ADCD ECFB 6239