![]() |
|
Computers & Information Technologies « Everything related to computers and internet. » |
![]() |
|
Share | Thread Tools | Search this Thread |
![]() |
#1 |
Registered Member
Last Online: 08-06-2014
Join Date: Nov 2009
Posts: 568
Thanks: 838
Thanked 231 Times in 173 Posts
Groans: 23
Groaned at 16 Times in 13 Posts
|
![]()
Hay all!
I need to move my site to a new server (one with unix installed). I can SSH to this server as a root. On the other one I have a site. I can only FTP to it. So I want to move all folders & files from the old server to the new one without stupid downloading to my PC and then uploading to the server all that stuff. How to do that?
__________________
What about a 500+ symbols long, colored signature with URL allowed and size limited to 7? |
![]() |
![]() |
![]() |
#2 |
info@sync.com.lb
Last Online: 06-05-2018
Join Date: Apr 2006
Posts: 3,827
Thanks: 1,348
Thanked 2,391 Times in 1,306 Posts
Groans: 0
Groaned at 16 Times in 15 Posts
|
![]()
zip the files/folders and download the compressed file from one server to another
__________________
http://www.gamync.com Lebanese Produced Mobiles Games by http://www.sync.com.lb |
![]() |
![]() |
![]() |
#3 |
Last Online: 05-30-2013
Join Date: Jan 2008
Posts: 1,788
Thanks: 10,018
Thanked 1,100 Times in 651 Posts
Groans: 1
Groaned at 6 Times in 6 Posts
|
![]()
On the server where you have SSH access
Put the website in a tar file: Code:
tar -czvf /tmp/webisteFile.tar /var/www/websiteFolder/ On the server where you have FTP access Upload the websiteFile.tar and the create a php script with the following content: Code:
<?php system("tar -xf websiteFile.tar"); echo "finished!"; ?> Put this script in the same directory as where you uploaded the tar file, and then execute it by accessing it through the web browser.
__________________
Last edited by Google; 07-27-2010 at 01:44 AM. |
![]() |
![]() |
![]() |
#4 |
Ma ghayro
Last Online: 04-19-2018
Join Date: Dec 2005
Posts: 5,592
Thanks: 1,765
Thanked 4,201 Times in 2,361 Posts
Groans: 12
Groaned at 18 Times in 11 Posts
|
![]()
Just copy the whole website through FTP, you don't even need to compress especially if your host doesn't support gzip or tar.
FTP the new host We'll take vcoderz as an example Open SSH and type these. 1 - cd /var/www/html/oldwebsite/ 2 - ftp 3 - open vcoderz.com 4 - put username and password 5 - cd /var/www/html/newwebsite/ 6 - prompt (to turn off prompt confirmation for each file transfer) 7 - mget *
__________________
http://twitter.com/danymoussa
|
![]() |
![]() |
![]() |
#5 |
Registered Member
Last Online: 08-06-2014
Join Date: Nov 2009
Posts: 568
Thanks: 838
Thanked 231 Times in 173 Posts
Groans: 23
Groaned at 16 Times in 13 Posts
|
![]()
Thank you all, I now will try xcoder's solution.
__________________
What about a 500+ symbols long, colored signature with URL allowed and size limited to 7? |
![]() |
![]() |
![]() |
|
Tags |
server, site |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
|
|