Wednesday, 26 February 2014

script to create tar files within specific size

If you want to take backup tar of public_html folder with tar files have specific size.
Please use below command.

tar -cv public_html/* | split -b 25000K --suffix-length=4 --numeric-suffix - sara.tar.

It creates many tar files with size of 25MB.

If you place this files under same directory and execute the below command to extract it.

cat falooka.tar.* | tar xvf -

it provides the public_html folder.

I already tested this script. Use it.

No comments:

Post a Comment