Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to migrate my site VERY EASY QUESTION

Posted on 2008-09-29
8
Medium Priority
?
278 Views
Last Modified: 2010-04-20
how can i migrate my files to my new server?

what is the command that will do that? resync?


cenos os - webmin control panel
0
Comment
Question by:kamileris
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 9

Accepted Solution

by:
khaledf earned 2000 total points
ID: 22598240
you can use scp command which is more secure. the command looks like
scp -p -r username@serverA:/var/www/vhosts/mydomain.com username@serverB:/var/www/vhosts/mydomain.com

it will ask for password when needed.
0
 
LVL 9

Expert Comment

by:khaledf
ID: 22598249
and for the database you will need to export it from your old server and import it to the new server
0
 

Author Comment

by:kamileris
ID: 22598279
thank you so much for your answerr

well I have webmin therefor I have no phpmyadmin to configurate my databases any other ideas whould be great thank you!
0
Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

 

Author Comment

by:kamileris
ID: 22598396
Thats great man thank you so much!!

but looks like little bit slow do you have any we can make this a little bit faster if thats like checking something on each file but thats great thank you so much!!
0
 
LVL 9

Expert Comment

by:khaledf
ID: 22598412
you can do it from command line
example

in your old server
mysqldump -u username -p password database_name > oldserverdump.sql

in your new server
mysql -u username -p password database_name < oldserverdump.sql

but before importing to the new server make sure you have created the database and copied the oldserverdump.sql to the new server
0
 
LVL 9

Expert Comment

by:khaledf
ID: 22598428
also make sure that you have created the same user name and password for the database for your applications to be able to connect successfully.
0
 
LVL 9

Expert Comment

by:khaledf
ID: 22598492
you are most welcome.
you can choose to compress the files if you want using the -C option in scp
0
 

Author Comment

by:kamileris
ID: 22598523
great info man! Thank you so much!

can you also take a look at:

http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_23772013.html

i am having simple error message on my new system but not sure how to install the package thank you!
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question