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
not reproducible
but you may write an answer if you have one. I know that modern daytar
can split an archive over multiple files and wonder if this question is unnecessary today?