Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 279
  • Last Modified:

How to migrate my site VERY EASY QUESTION

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
kamileris
Asked:
kamileris
  • 5
  • 3
1 Solution
 
khaledfCommented:
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
 
khaledfCommented:
and for the database you will need to export it from your old server and import it to the new server
0
 
kamilerisAuthor Commented:
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
Microsoft Certification Exam 74-409

VeeamĀ® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
kamilerisAuthor Commented:
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
 
khaledfCommented:
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
 
khaledfCommented:
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
 
khaledfCommented:
you are most welcome.
you can choose to compress the files if you want using the -C option in scp
0
 
kamilerisAuthor Commented:
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now