Solved

How to migrate my site VERY EASY QUESTION

Posted on 2008-09-29
8
269 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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

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é.
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

760 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

23 Experts available now in Live!

Get 1:1 Help Now