2004/11/08

zip a large number of files recursively

I forget how to zip all files and sub-directory contents into one single file.

Upon searching my archive, it should be :

#zip -r allzip .

One thing to remember is that after the unzip process, the file permissions and attributes are retained.

I have once used this method to rescue my server.

Another common tool to accomplish this taks is "tar".


No comments: