Skip to content

Split big archive when creating it with tar (multi tape backup)

Create 6 tapes of 500GB:

#Create
tar --tape-length=524288000 -cM -f 3/dn1.tar -f 4/dn1.tar -f 5/dn1.tar -f 6/dn1.tar -f 7/dn1.tar -f 8/dn1.tar 1/
#Extract

Supposing we uses split command, then if at least one file corrupted - restore archive will be not possible. If we uses splitting method providing by TAR - they will be extracted, except those who been placed in corrupted tape.

#Create
tar czf - ./backup | split -d -b 10m - backup.tar.gz.

#Extract
cat backup.tar* | tar xzf -

 

Leave a Reply

Your email address will not be published. Required fields are marked *

π