473,837 Members | 1,705 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to Q: Uncompressing ~400K files on Apache Server

How to Q: Uncompressing ~400K files on Apache Server

Hello All,

I have ~400K html files on my local XP machine and Id like to
compress the files, upload them onto my host (apache - pair.com) and
uncompress them there.

Ive done this with less files (~10K) before using ssh, putty and
unzip command. I seem not to be able to use the same method as ZIP
format will not accept such a large number of files.

Any suggestions on what options I have?

Thanks,

SS
Sep 4 '08 #1
5 2389
..oO(se******** *@gmail.com)
>How to Q: Uncompressing ~400K files on Apache Server

Hello All,

I have ~400K html files on my local XP machine and I’d like to
compress the files, upload them onto my host (apache - pair.com) and
uncompress them there.

I’ve done this with less files (~10K) before – using ssh, putty and
unzip command. I seem not to be able to use the same method as ZIP
format will not accept such a large number of files.

Any suggestions on what options I have?
Split the files (10x40K or so) or try another packer like 7zip.

Micha
Sep 4 '08 #2
On Sep 4, 4:13*pm, senadsli...@gma il.com wrote:
How to Q: Uncompressing ~400K files on Apache Server

Hello All,

I have ~400K html files on my local XP machine and Id like to
compress the files, upload them onto my host (apache - pair.com) and
uncompress them there.

Ive done this with less files (~10K) before using ssh, putty and
unzip command. I seem not to be able to use the same method as ZIP
format will not accept such a large number of files.

Any suggestions on what options I have?
Your options will depend on what your host allows. I am on Unix/Linux/
Apache. My host provides easy to use compression for zip, gzip, and
bzip2. It also provides decompression for these and some other
compressed files you wish to upload. Gzip is a favorite on Apache
servers. The program 7-zip as suggested to you will allow use of these
formats and more on your computer. It is free and can be downloaded at
http://www.7-zip.org/ .

Some of the better ftp agents also may help. I use CuteFTP7 Pro. For
instance you may have a folder that contains a huge number of files,
and you are tempted to zip it to avoid having to upload many files.
When this does not work for whatever reason, you can open the folder
you want to upload and highlight blocks of files that are not too
excessive. Then you just select where on the server you want to upload
the files on another pane of the FTP agent. You hit the upload button
and you may leave and do something else. The FTP agent automatically
uploads all of the files you have highlighted and uploads two files at
once when the server is not too busy and allows multiple connections.
The FTP agent reconnects when the connection is broken, and it takes a
fairly bad problem for it to give up uploading. If it does have a
problem, you at least have some of the files you highlighted uploaded
and do not have to start all over.

Also worth noting is your isp. Even for the fastest DSL and cable
connections, upload usually is much slower than download. Some isps
have a time limit at which the disconnect from you server. If you have
a huge file, it might not be able to upload within this time limit no
matter if the file is zipped or not.
Sep 5 '08 #3
se*********@gma il.com wrote:
How to Q: Uncompressing ~400K files on Apache Server

Hello All,

I have ~400K html files on my local XP machine and Id like to
compress the files, upload them onto my host (apache - pair.com) and
uncompress them there.

Ive done this with less files (~10K) before using ssh, putty and
unzip command. I seem not to be able to use the same method as ZIP
format will not accept such a large number of files.

Any suggestions on what options I have?

Thanks,

SS
This issue doesn't seem to have anything to do with PHP, but there are
other compression algorithms available besides ZIP, such as gzip or
bzip2 (both available on *nix).

--
Curtis
Sep 5 '08 #4
On 4 Sep, 22:13, senadsli...@gma il.com wrote:
How to Q: Uncompressing ~400K files on Apache Server

Hello All,

I have ~400K html files on my local XP machine and Id like to
compress the files, upload them onto my host (apache - pair.com) and
uncompress them there.

Ive done this with less files (~10K) before using ssh, putty and
unzip command. I seem not to be able to use the same method as ZIP
format will not accept such a large number of files.

Any suggestions on what options I have?

Thanks,

SS
Why? ssh will compress on the fly.

C.
Sep 5 '08 #5
Hi,

C. (http://symcbean.blogspot.com/) wrote:
I’ve done this with less files (~10K) before – using ssh, putty and
unzip command. I seem not to be able to use the same method as ZIP
format will not accept such a large number of files.
[...]
Why? ssh will compress on the fly.
not by default, though.

Otherwise, I agree. Just use WinSCP (or similar), configure it to use
compression.

-hwh
Sep 5 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2892
by: Titus Cheung | last post by:
Hello, Just installed Apache and PHP. Edited the .conf file for the appropariate addtype lines, and Apache itself is working. However, when I type in the URL for the test script, the browser behaves as if it is going to download the file and ask if I want to open, or save it. Any ideas of why this is happening? Thanks
2
14172
by: Mike | last post by:
I am sure that I am making a simple boneheaded mistake and I would appreciate your help in spotting in. I have just installed apache_2.0.53-win32-x86-no_ssl.exe php-5.0.3-Win32.zip Smarty-2.6.7.tar.gz on a system running WindowsXP SP2. Apache and PHP tested out fine. After adding Smarty, I ran the following http://localhost/testphp.php
2
2615
by: Harold Ensle | last post by:
Has anyone ever had this problem? I have been compiling servlet files, correcting them, recompiling them and seeing the changes on the next URL request. So everything was going smoothly. Suddenly I could no longer change the .class files. That is, they were changed but the URL was apparently calling a cached version which would not update. When Apache was restarted, it would then finally update. Needless to say this is very undesirable...
4
2821
by: MLH | last post by:
A programmer developed an AMP (Apache/MySQL/PHP) application for me. When he was done, he sent me the PHP files and the MySQL dump file. Now, when I connect to the application on my LAN using http://192.168.1.106/~mlh/credifree/index.php the AMP app still thinks the data resides somewhere else. It runs fine - as long as I leave my LAN's external internet connection up. But if I unplug my LAN from the world, my app locks up. Before I...
3
12280
by: Oliver | last post by:
Hello! I am really stuck... I have searched the whole internet to find a dll or a API which I can use in .NET C# to uncompress all the major archiv files but I really didnt find anything whith suites my needs. Do you know where to find such an api or dll? All it needs to do is ->uncompressing<- the major archiv files as well as reading out the ->header informations<- of an archiv file?
3
2073
by: Dean Richardson | last post by:
Hi, I'm having trouble uploading files via a PHP script. Whenever I upload a file greater than 10K, the file gets corrupted. However, text files upload OK. When I check the FTP Server log I find this:
3
4852
by: ManWithNoName | last post by:
Hi guys. Im still occupied with school, however, I cant quite help thinking about a part of my project that Im very curious about. I want to protect files and folders on the web server, so that no one can access the files through the web server OS (using e.g. windows explorer to see, open and edit the html or php files). I want to clarify: I do not want to hide the html source file, or any other file that otherwise is accessible...
24
9885
by: Gary Hasler | last post by:
I want apache to parse all .html files for php code. Our 'real' web server is rented from ICDsoft ( php 5 on Apache on Linux whatever), and their instruction is to add the following to the .htaccess file: AddHandler application/x-httpd-php .html ....which works great. However, our local in-office server for testing and viewing our sites is Apache 2.0.55 with PHP 4.4.4 on Windows XP Pro. I have read everything I can find, and have...
6
7607
by: josequinonesii | last post by:
I've searched, I've read, I've tested and re-read numerous post but to no avail yet... Quite simply, the settings I've applied to my httpd.conf, httpd-vhost.conf and my hosts files simply does not work. Please review my work and let me know if you see that one little thing that is throwing me for a loop. HTTPD.CONF # # This is the main Apache HTTP server configuration file. It contains the # configuration directives that give the...
0
9847
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9693
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10899
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10638
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10280
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7012
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5680
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5862
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4058
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.