Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 25, 2012, 09:56:22 AM

Pages: [1]   Go Down
  Print  
Author Topic: Moving from Shared to VPS, need to upload 2 gigs. Any suggestions?  (Read 1253 times)
smaxwest
Pong! (the videogame) Master
*****
Offline Offline

Posts: 20


« on: July 10, 2008, 04:56:25 PM »

Like the subject states, I'm moving from shared to vps, but I have to upload 2 gigs of data. The fastest connection I have available to me is at home and that's only about 768 k/bits up. The individual files can range anywhere from 1 byte to 33 mb, there are about 200 directories and about 12000 files. I tried it this past weekend via ftp, file by file, on 2 connections (anymore and my router was killing the connection) and it took about 8 hours. Should I compress the files so I can work up a pretty good burst speed? When I was on shared hosting, the file manager had a function that allowed us to send up zipped files which we could extract through CP, but I don't see a similar function available in Plesk. I'm going to try another upload tonight. Thanks!

Peter
Logged
smaxwest
Pong! (the videogame) Master
*****
Offline Offline

Posts: 20


« Reply #1 on: July 11, 2008, 02:50:14 AM »

Oops. Admins, please move to VPS hosting if it belongs in that group. Thanks.
Logged
smaxwest
Pong! (the videogame) Master
*****
Offline Offline

Posts: 20


« Reply #2 on: July 11, 2008, 12:53:47 PM »

Nevermind. I found the solution.
Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1395



« Reply #3 on: July 11, 2008, 09:29:40 PM »

Hi smaxwest,

I am glad to hear you found a solution to this issue. Would you please share it for other forum members who may require the same help?
Logged

Kind Regards,
Vlad Artamonov
smaxwest
Pong! (the videogame) Master
*****
Offline Offline

Posts: 20


« Reply #4 on: July 14, 2008, 01:11:17 PM »

I remembered there was an unzip command in Linux, so I decided to zip up the files and upload them via ftp. I hate the CLI, but I guess I don't have many other options at this point.
Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1395



« Reply #5 on: July 17, 2008, 09:19:42 AM »

I remembered there was an unzip command in Linux, so I decided to zip up the files and upload them via ftp. I hate the CLI, but I guess I don't have many other options at this point.

Thanks for sharing this Thumbs Up
Logged

Kind Regards,
Vlad Artamonov
ptejad
Newbie
*
Offline Offline

Posts: 2


« Reply #6 on: November 21, 2008, 02:44:48 AM »

An even faster way is to just zip up your old site on the old site, then log into the new site via SSH and then ftp it from oldserver to newserver, unzip and your there.

This benefits from having the superfast connections at both end of the FTP

Don't have SSH, you can fake it with this small script (save as phpexec.php, and upload it to your server, then run it and use a command line like "cd .. ; zip -r public_html.zip public_html"):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>phpexec</title>
</head>

<body onload="document.form1.cmd.focus();">
<?php echo "Current Directory: " . getcwd() . "<br>"; ?>
<form name="form1" action="phpexec.php" method="post">
<input name="cmd" type="text" size="120" /><br />
<input name="execute" type="submit" /></form>
<?php

if (isset($_POST['cmd']) && $_POST['cmd'] != "") {
   $str = shell_exec($_POST['cmd'] . " 2>&1");
   echo "cmd = " . $_POST['cmd'] . "<br>";
   echo "<pre>output=" . $str . "</pre><br>";
}
?></body>
</html>

Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1395



« Reply #7 on: November 23, 2008, 10:48:11 PM »


Good solution, Ptejas. I just wanted to add that you don't need to forget about security. Don't leave such script on the server not protected from 3rd party access as this can lead to dramatic consequences. The protection can be done by password, by IPs allowed to access the script or very-hard-to-guess name for it.
Logged

Kind Regards,
Vlad Artamonov
Pages: [1]   Go Up
  Print  
 
Jump to: