Tech Support > Operating Systems > Linux / Variants > "tar cvzf /dev/st0 ./mydir", how can I make it swap tape?
"tar cvzf /dev/st0 ./mydir", how can I make it swap tape?
Posted by Raymond Li on March 6th, 2004


Dear all,
I have tried to backup my data to tape under Linux with the above
command. The only problem I got is that when the data is too large and
exceed a tape's capacity, then the backup just fail. How can I make it
swap another tape?

Thanks in advance!

Raymond

Posted by Nick Landsberg on March 6th, 2004




Raymond Li wrote:

have you tried the compress option?

Gzip, compress, etc.?

It might be worth a try.

--
Ñ
"It is impossible to make anything foolproof because fools are so
ingenious" - A. Bloch


Posted by Tony Curtis on March 6th, 2004


$ info tar

`--multi-volume'
`-M'
Informs `tar' that it should create or otherwise operate
on a multi-volume `tar' archive.

`--volno-file=FILE'
Used in conjunction with `--multi-volume'. `tar' will
keep track of which volume of a multi-volume archive its [sic]
working in FILE.

You could also explore more capable backup systems
e.g. bacula.

hth
t