I want to compress a file with
tar but I'd like to know if its possible to do it while splitting the files.
I know that in windows is possible to do this with winrar, I also know I can use
split but I would then have to unsplit this from Linux
You can send the output of
tar to stdout and then pipe this into the
tar cvzf - ./path/to/dir | split --suffix-length=LENGTH --bytes=SIZE - chunkedTar
Choose your suffix length and File sizes
To un-split, concatenate the files in the correct order and pipe that into
cat /path_to_chunks/chunkedTar* | tar xvzf -
Actually, it appears that files split under Linux with
split are able to be reassembled in Windows using
See the related question and answer here.