How can I tweak this split-tar-gz-archive script?

Posted by Sai on Ask Ubuntu See other posts from Ask Ubuntu or by Sai
Published on 2012-06-25T19:19:19Z Indexed on 2012/06/26 3:24 UTC
Read the original article Hit count: 324

Filed under:
|
|
|

I came across this shell script that can be used to split an entire directory across multiple compressed files.

I am interested in making a minor tweak to this script. Lets say I have n GB of files in a directory. I do not want the contents of a particular folder to be split across multiple tar files but inside the same file. I want the n MB folder to be fit within a single compressed file and the remaining (n GB -n MB) split across multiple files.

I am not sure whether it is possible with this script. I was looking forward to some suggestions. Though the script has been well documented, it is quite complex to understand for me

© Ask Ubuntu or respective owner

Related posts about command-line

Related posts about shell