Univention Bugzilla – Bug 47784
Split Archive in Smaller Chunks if Above a Limit
Last modified: 2018-09-13 06:25:50 CEST
As our upload server restrict uploads to around 100 megabytes we need to have an efficient way to allow customers to upload anyways. Using personal fileshare is not an option. So idea is to split the usi archive into smaller chunks in case it excees a defined size. And inform customer he has to upload multiple files. I would suggest to set the max size to 60M and in case split it into chunks of 50M each. On bash you can easily use the "split -b 50M INFILE OUTFILE." command. I found several code sniplets to realize in Python.... See ie https://www.reddit.com/r/learnpython/comments/51hxul/how_do_you_split_a_binary_file_into_specific/ https://bytes.com/topic/python/answers/869632-split-binary-file And loads more...
Or use "rar", which has built-in support for splitting and combining archives and creating checksums.
(In reply to Daniel Tröder from comment #1) > Or use "rar", which has built-in support for splitting and combining > archives and creating checksums. rar is by default not shipped with UCS. And I would prefer a well-known and open format...
I suggest to orientate on the real size limit of the upload server to not make things more complicate than needed. AFAIK the current limit is set to 150 MB which suits the most cases. But from my point of view it's way more important to provide a way to auto-upload the usi archive!!!