Linux: 7zip to split archives for use on Windows

If you are transferring large files between systems, it can be advantageous to create a compressed archive using a tool like 7zip.  Taking this a step further and splitting this archive into manageable chunks allows you to take advantage of parallel transfer.

While there are many ways to do the same thing using utilities like zip, split, etc. I find that using 7zip provides easy interoperability across Linux and Windows.

Creating a split archive on Windows is detailed in posts like this [1, 2, 3] (Note that it works using either 7zip or zip format).  Then you can transfer this to a Linux host and use the following to extract it.

sudo apt-get install p7zip-full -y

# extract contents
7z x <myarchive>.zip.001

# OR mend original archive, but do not extract content yet
7z x <myarchive>.zip.001 -tsplit

Create split archive on Linux, extract on Windows

Conversely, if you want to create a split archive from Linux with 100k per file:

7z -v100k a fromlinux.7z <glob>

From Window you would right-click on the “fromlinux.7z.001” file, and select “Extract here” to unzip  the content.

Valid suffixes for size units are (b|k|m|g).

 

REFERENCES

7zip official page

Creating archive volumes