Saturday, July 27, 2013

Zipping large and alot of files using command line


 I was trying to zip a zen cart site, it was of quite large size, i did everything other thing to zip it but wasnt possible, at the end of the day it turned out to be that files were not successfully zipped and not all files were there leading to situation where the zip file was corrupt.

so i used 7zip a zipping utility, DONOT use its gui, its not worth in this case, as i tried to do it with gui alot many times.

1. Go to the program files where 7zip is installed.

2. Go to the directory where it shows that there is a "7z.exe" file in the folder.

3. Open command prompt with RUN AS ADMINISTRATOR privileges

4. CD to the directory where the 7zip is installed

5. Run the following command.

7z a -tzip "E:\software_pee.zip" "E:\folder_to_zip"

WHERE:

 "E:\software_pee.zip"
Is the zip file that will be created in E drive, you can use your own path

"E:\folder_to_zip"
Folder name that needs to be zipped, in my case it was in E drive.

After zip i found out that the entire site for some reason was of 21 GB , wonder what was in it :)

Thanks


0 comments:

Post a Comment

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More