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.

Comments

Popular posts from this blog

KVM & Qemu

PHP Fatal error: Class 'JFactory' not found

docker.errors.APIError: 400 Client Error client is newer than server