LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   tar multiple volume archive - volume script (https://www.linuxquestions.org/questions/linux-general-1/tar-multiple-volume-archive-volume-script-478921/)

RGummi 08-30-2006 05:50 PM

tar multiple volume archive - volume script
 
Hello,

I want to use a volume script with the tar command and the multiple volume script.
My resource for this is
http://www.gnu.org/software/tar/manu...-Archives.html

I have tried a simple example:

tar -cL8 -f test.tar -F ~/bin/testtar .

the testtar script looks like this:

#! /bin/sh

echo Preparing volume $TAR_VOLUME of $TAR_ARCHIVE.

# echo "hallo" >&3

after executing the command I see that the script is called but $TAR_VOLUME and $TAR_ARCHIVE are empty and I can not write to the file descriptor 3.

Any ideas what's going wrong?

RGummi

ygloo 08-31-2006 02:51 PM

# echo "hallo" >&3 -
remove "#"

RGummi 08-31-2006 04:08 PM

I have fixed the problem !
updating tar has solved the problem, Version 1.15.91 is required!

R


All times are GMT -5. The time now is 10:04 PM.