PDA

View Full Version : Extract ZIP file and over write existing



BobC
07-16-2008, 08:57 AM
Using Control Panel:File Manager or Legacy File Manager-
I need to extract a zip file (Joomla 1.5.4 update) and over write the existing files. The zip file is in the correct directory, and when I select to unzip it, I get the following error message, and nothing is extracted:

Archive: /home/gwinnett/public_html/Joomla_1.5.1_to_1.5.4-Stable-Patch_Package.zip
replace administrator/language/en-GB/en-GB.mod_stats.ini? [y]es, [n]o, [A]ll, [N]one, [r]ename: NULL
(assuming [N]one)

How can I change the default (assuming [N]one) to [A]ll ?
I read a previous posting in which someone suggested to extract the files on local computer and then ftp them to the site. This would be fine if it was only for 1 site. I upload the zip file one time, and when there are 5-6 sites that need to be done, I need this extract to be allowed to over write the existing files in each site from one zip file location. Another words, I can upload the zip file one time, and unzip it into all the websites from there, doing the unzip operation however many times as I have sites.

shadmego
07-16-2008, 10:03 AM
If all your sites are on one server, under one main account, then you could upload the zip, uncompress it into a folder, say (1.5.4 update), and then copy each folder into each site's directory structure. If you had shell access, you could do this with one or two commands and have all your sites updated at once.

~regards, and welcome to the Community!

BobC
07-16-2008, 11:14 AM
Great idea! About the time you posted, I had just finished uploading the tar.gz copy of the updates, and it unzipped without any issued. So, there are two different ways this can be accomplished, what you suggested, and using tar.gz instead of .zip files.

pghcollectibles
07-16-2008, 11:19 AM
im not sure if linux likes windows' zip format.

that is excellent shad. and yet like almost obvious. i need to play with my putty more i guess.

shadmego
07-16-2008, 11:51 AM
Linux doesn't do zip by default (at least the last time I checked), but there are programs available for Linux that provides this functionality. I've never had a problem with zip files in my CPanel File Manager, but I do prefer tarballs because of the better compression and speed.

r2b2
07-16-2008, 03:13 PM
Zip has been on all the Linux systems I've come across (as unzip) - its the likes of Solaris etc. that tend not to have it.

Linux should take Windows Zip format as the Zip format is a common format.

shadmego
07-16-2008, 04:04 PM
Thanks for clearing that up r2b2. I had in the back of my mind all day that I didn't get it quite right, but couldn't figure out where I was wrong ... I mean ... mistaken ...

~regards