Create split archives (zip, rar, 7z)?

In short:

  • you need to split one (or more) file into several archives of maximum size, using a fictitious safe format (for example, zip or rar everything that works!).
  • I like to know when some part will be executed (callback?) So that I can send it.
  • I would rather than do this using the rar or zip command line utilities if that is not possible.
  • I try to make it independent for the future, but now I can live if the compression can only be done on Linux (my main computer). I still need to make it easy to open in windows (female pc)

In the long

I am writing a reliable, reliable backup utility that scans my photo folder, encrypts each folder and uploads it to any downloadable class registered (whether it is sending by mail, downloading ftp, downloading http).

I used the zip file to create a giant archive for each folder, but since my download speed is really bad, I let it work only at night, but my Internet leaves the environment and it all goes bad. So I decided to split it into ~ 10 MB. I did not find a way to do this with a zipfile, so I just added the files to the zip until it reaches> 10 MB.

The problem is that there are often 200-300 MB, and sometimes more videos, and we again reach the middle night cutoffs.

Subprocess "rar" , , , , , - .

, , . , -, .

+3

All Articles