Solved

How to migrate my site VERY EASY QUESTION

Posted on 2008-09-29
8
270 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
  • 5
  • 3
8 Comments
 
LVL 9

Accepted Solution

by:
khaledf earned 500 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
 

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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

863 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now