How to split archives (tar) into parts

There are many ways to create a tar archive that would allow to limit the file size and break up automatically into incremental archives. If you want to do it with tar you should follow this short instruction.

We will use two popular tools (split and tar). Here is example usage. Backup directory 2011_03_13 and split archive into 4GB chunks:
 tar -cvp '2011_03_13/' | split -d -b 4000m - archive.tar.bz2. 
Recreate archive from chunks:
 cat archive.tar.bz2.0* |tar -xpvf -

Comments

Sharleena

Sharleena wrote

Sharp thinking! Thanks for the aneswr.

Marlie

Marlie wrote

Home run! Great slugging with that asnwer!

Comment