Bug 47784 - Split Archive in Smaller Chunks if Above a Limit
Split Archive in Smaller Chunks if Above a Limit
Status: NEW
Product: USI
Classification: Unclassified
Component: univention-support-info
unspecified
Other Linux
: P5 enhancement
: ---
Assigned To: USI maintainer
:
Depends on: 29191
Blocks:
  Show dependency treegraph
 
Reported: 2018-09-12 09:38 CEST by Christian Völker
Modified: 2018-09-13 06:25 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Feature Request
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Völker univentionstaff 2018-09-12 09:38:20 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...
Comment 1 Daniel Tröder univentionstaff 2018-09-12 09:42:52 CEST
Or use "rar", which has built-in support for splitting and combining archives and creating checksums.
Comment 2 Christian Völker univentionstaff 2018-09-12 10:31:16 CEST
(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...
Comment 3 Nico Stöckigt univentionstaff 2018-09-12 17:41:41 CEST
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!!!