Try this:
/usr/local/gtar-1.22/bin/tar -cf - ${WHATTOBACKUP} \
--checkpoint-action='echo=Checkpoint #%u' \
--checkpoint-action="exec=/usr/local/scripts/check_disk_usage.sh $
{DIR}"
The use of single quotes prohibits the expansion of environment
variables. Use double qoutes instead.
On Oct 21, 2009, at 8:55 AM, Matthew Seaman wrote:
That's fairly basic shell syntax. Use "double quotes" on any string
where
you want variable interpolation.
Cheers,
Matthew
I will try that again and let you know what happens.
Thanks,
Jay
Jay Hall wrote:
Ladies and Gentlemen,
I am working with gnu tar checkpoints this morning can cannot seem to
get variables to expand properly when they are passed as part of a
checkpoint action. Following is how I am using gnu tar
DIR="/home/test"
WHATTOBACKUP="/home/somedir"
/usr/local/gta
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Wed, 21 Oct 2009 08:44-0500, Jay Hall wrote:
> [...] Following is how I am using gnu tar
>
> DIR="/home/test"
> WHATTOBACKUP="/home/somedir"
>
> /usr/local/gtar-1.22/bin/tar -cf - ${WHATTOBACKUP} \
> --checkpoint-action='echo=Checkpoint #%u