Solved

How to migrate my site VERY EASY QUESTION

Posted on 2008-09-29
8
275 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 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

626 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