Create Tar Spanning in multiple files

Quick way to create tar multiple file from the terminal 

tar czpvf - /archive | split -d -b 100M - disk

This will archive the folder name /archive and split it into 100MB with each naming disk00, disk01 and etc…

Afterwards to joint them back you need to use this command

cat disk* | tar xzpvf -
Advertisements