August 30, 201115 yr Hi everybody, I have 12k files to upload which i have taken from another server. This needs to be put onto my server. I have tryed upload them all but a few thousand of them failed and the website ovuisly isent working... Is there a safeway to get the files on there im really stuck please help :(
August 30, 201115 yr Upload 1 zip file of them and unzip it on the server? for example with PHP <?php $output = `unzip my12kfiles.zip`; echo "<pre>$output</pre>";
August 30, 201115 yr Author Upload 1 zip file of them and unzip it on the server? for example with PHP <?php $output = `unzip my12kfiles.zip`; echo "<pre>$output</pre>"; So do I just upload the zip, and then save that file as unzip.php then go to that on my browser and it should run? :S
August 30, 201115 yr no safeway, morrisons took them over. As Jock says or just keep trying. Was there any pattern to the files that failed? Or was it just your server thinking something nasty was happening?
August 30, 201115 yr Author well the uploads were going great for like 8k then i popoutside come back and then there had been 2 thousand failed files.. im going to talk to citycm about it, if jocks way dont work
August 30, 201115 yr So do I just upload the zip, and then save that file as unzip.php then go to that on my browser and it should run? :S yeah just upload the zip file and that script and open it in your browser. Just change the php to have the right zip file name. *It wont work if the server doesnt have unzip, safe_mode is on or shell_exec is disabled.
August 30, 201115 yr Author ok got it ill come back with my results in a bit.. 12k files takes flipping ages to upload even on 50mg broadband
August 30, 201115 yr If you've got shell access to them, use the SCP command and just copy directly from one to another
August 30, 201115 yr increase max execution time if its huge. ini_set('max_execution_time', 300); $output = `unzip my12kfiles.zip`; echo "<pre>$output</pre>"; Edited August 30, 201115 yr by Jock
August 30, 201115 yr Author ffs lol i cant do jocks way till this zip is done. 11 hours left... :/ whats that other way? you know a link that will guide me thru it jay?
August 30, 201115 yr Do you have shell (SSH) access to both? If so, use PuTTY or Tunnelier to log into one server, then take a look at this http://www.linuxtutorialblog.com/post/ssh-and-scp-howto-tips-tricks
August 30, 201115 yr Of course, if you can execute commands like Jock put above on your old server, you could use a gzip tarball command to zip it, then use wget to send it across...lots of ways of doing it
August 30, 201115 yr Author i only have shell access on my server dam :/ lol i see! how do i gzip tarbal???? Edited August 30, 201115 yr by kingy da killa
August 30, 201115 yr What FTP program are you using and did you get any error messages for the failed transfers (such as "Too many connections from this IP)?
August 30, 201115 yr Author What FTP program are you using and did you get any error messages for the failed transfers (such as "Too many connections from this IP)? filezilla and no i did not. im uploading a cs-cart btw
August 30, 201115 yr If you have SSH only on your server, then use ftp via shell on your server, login to your remote server, and download all the files to your server
August 30, 201115 yr Author that was a bit confusing. right im going to log into server 1 (my server that the files need to be moved on 2) and find shell access on the cpannel and then im also going to have ftp open of server 2 where the files are is this the right direction.. Edited August 30, 201115 yr by kingy da killa
August 30, 201115 yr OK, so log in via SSH to the server, and cd into the folder that needs the files in it check your server allows for ftp by typing in man ftp This should show you the manual page for your systems FTP command I'll do these posts in stages for you
August 30, 201115 yr Author i have done jocks way, the zip file has done. Archive: target.zip has come up after i went on upload.php now what :S ================= i still want to do your way thou jay if this isent working
August 30, 201115 yr You have the zip file and the php script uploaded? if so just go to http://yoursite.com/unzip.php and it should unzip it. you could use the ssh to run the same command too unzip filename.zip
August 30, 201115 yr Author OK, so log in via SSH to the server, and cd into the folder that needs the files in it check your server allows for ftp by typing in man ftp This should show you the manual page for your systems FTP command I'll do these posts in stages for you ****.. i loged onto the cpannel and it says 500 / 500 MB ... from my zip being uploaded. Do you think that i got to 8k files ok and then the rest woulden upload because there wasent enough space...? blaintly the reason!!!!
August 30, 201115 yr Author ok i think my zip file is downloading onto the server... do i have to leave the upload.php page open? and how do i no when its done? Archive: target.zip extracting: targets/.htaccess inflating: targets/aff_statistics.php inflating: targets/affiliate_plans.php inflating: targets/auth.php inflating: targets/banner.php inflating: targets/banners.php inflating: targets/banners_manager.php inflating: targets/cart.php inflating: targets/categories.php inflating: targets/checkout.php inflating: targets/client_env.php inflating: skins/new_vision_blue/manifest etc...
August 30, 201115 yr Author ok its done. I have uploaded all the files succesfully i think. just need the person who hosts the website on the other sever to send me the msql database and should be good to go!
Create an account or sign in to comment