Howto zip files

The free available 7z is used to zip a huge amount of small files before writing them to the tape archive. 7z has many nice features and good performance. It is aible to handle files large than 4 Gbyte.

7z will be installed on debian etch32 but is currently not available from the system under debian sarge. To do a local installation for sarge copy the content of /misc/kempter/p7zip_4.57/bin/ to your ~/bin/.

 

Typical use for archiving:

Create 1Gbyte split zip files (a == add)
The names will be ouput.zip.001
                  ouput.zip.002 ....
7za a -v1000m output.zip myfiles*.root

Unzip all split files to local dir (x or e == extract)

7za e output.zip.001 (all files in one dir)
7za x output.zip.001 (including full path)


-----------------------------------------

With 7za you can work with the
zips in the following:



7za t  my.zip              one can test the archive
7za t  my.zip   *.cc -r    test all .cc file in all subdirs (recursive)

7za l  my.zip              list content of the archive

7za a my.zip mydir/  add all files in mydir to archive (dir will be inside)

7za e my.zip               extract all files to actual working dir (dir /subdir structure will be lost)
7za e my.zip *.cc -r       extract all .cc files to actual working dir (dir /subdir structure will be lost)

7za x my.zip               extract all files including the dir/subdir structure

7za x my.zip -o/somepath/somedir extract all files icluding structure to /somepath/somedir instead of the actual working dir

 

Man pages and html doc you can find in

7z_MANUAL/index.html