[Tutor] File compression

Magnus Wirström asdlinux at yahoo.se
Wed Jun 28 00:19:19 CEST 2006


Hi Everyone

I'm starting to python and i need to write a program that are able to 
compress a high amount of files and directories into a single file that 
is later going to be transfered  with ftp to a  backup storage server. 
The data is a quite big amount (over 1.5 gb in 40000 files and 1300 
directories) so i would like to have high compression like RAR or bz2. 
What way is the best to approach this? I have looked a bit on zlib but i 
didn't find a good example that uses it to compress files and 
directories in one file from python. or perhaps it's simpler to execute 
a external program, doing the work. I would prefer to use python as much 
as i can without external apps.

Does anyone have a idea how this can be made with python.

Thanks
Magnus Wirström


More information about the Tutor mailing list