DEAR PEOPLE FROM THE FUTURE: Here's what we've figured out so far...

Welcome! This is a Q&A website for computer programmers and users alike, focused on helping fellow programmers and users. Read more

What are you stuck on? Ask a question and hopefully somebody will be able to help you out!
+1 vote

I need to create an archive. But I also need to chop it into multiple files with a max size of 1GB per file. The format is not important (zip, rar, 7z) as long as I can compress on Linux and decompress on any other OS (Windows included). How can I do it with 7zip in a single pass?

by

1 Answer

0 votes
 
Best answer

This worked for me: 7z a -ttar -v1G <output_name> <input_name>. You can replace -ttar and -v1G with the format and size that you need.

-t{Type}
    Set type of archive

-v{Size}[b|k|m|g]
    Create volumes
by
selected by
Contributions licensed under CC0
...