Need help create a multi-volume with Tar (without tape)



Hi
I need to create a multi-volume archive with tar in a directory.
If I use this command line:
tar -c -M --label=MyLabel --tape-length=1024 --file=/tmp/test1.tar
/etc/
I obtain a prompt to change the volume
To avoid the prompt I try this:
tar -c -M --label=MyLabel --tape-length=1024
--new-volume-script=./MyScript.sh --file=/tmp/test1.tar /etc/
Then I don't have the prompt any more but I obtain only the last
multi-volume archive: /tmp/test1.tar

NB: MyScript.sh is execute after each multi-colume archive
If MyScript contain:

let MTCOUNT+=1
echo $MTCOUNT

I obtain x time:
1
1
1

Thxs for ur help.

------------------
Sorry to use Google but I'm on work and our 'nice' proxy/firewall like
NNT...

.



Relevant Pages