Jump to content

Recommended Posts

Posted

I downloaded a full backup just now. There are about 16,000 files I am going to alter slightly. These are all regular html pages. If I zip them up again and upload the one zip file to the right folder will I be able to unzip that file and overwrite the 16,000 original files??

 

Or will this really mess things up?

 

ty

Posted
There are about 16,000 files I am going to alter slightly.

 

16k files... holy @#$%

 

If there was ever an example of why someone might want to use PHP, SSI or ASP to make site-wide alterations by just changing two files instead of uploading a whole site... this is it.

 

But you didn't ask about that...

 

Unfortunately, I don't know if you can unzip files after they've been uploaded. I haven't been able to make that work in the past.

 

I had to remark on this post just out of amazement at the number of files.

Posted

I was able to unzip my shopping cart using the extract feature in CPanel and it worked fine. I do not know if it will overwrite the files though. I say as long as you dont get your shell stuk, zip it up.

Posted

yea, 16k worth. Actually doing it (hoping to do it) so that I CAN include the one line for SSI. However I ran into a problem on a test run:

File Type: Zip archive data, at least v2.0 to extract

 

Archive:  x.zip

  inflating: xanadu.html           

replace bg1.jpg? [y]es, [n]o, [A]ll, [N]one, [r]ename: error:  invalid response [ ]

replace xanadu.html? [y]es, [n]o, [A]ll, [N]one, [r]ename:  NULL

(assuming [N]one)

 

Now what the heck does that mean? Aside from it didn't work. Should I not be using WinZip 8.0?

 

I can of course just ftp 16k worth ;)

Posted

Hi,

 

Its going to ask you each time what you want to do, in your case, rewrite the file, but you will have to press Y each time. I would FTP files for speed and the preservation of my Y key

 

Jim

Posted

Hiya Jim,

 

On the couple of tests I ran it did not prompt me for anything, just delivered the same error as I posted above.

 

And yes, I FTP'd all 16,000 of them back up the hill and all the stuff I added to the pages works just fine - mostly SSI stuff.

 

BTW - I was able to insert the extra lines with a few lines of perl and a .bat file I wrote. If anyone would like a look just let me know. I was able to add the lines to all 16k of files in about 20 minutes.

 

Thanks for all your responses to yet another bizarre boxturt query! :(

 

ty

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...