i have a wordpress site and i am using digitalocean on Cloudways service and i want to migrate my site to Digitalocean i want to know how can i do that ? thanks
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
scp
scp -r username@cloudways_server_ip:/path/to/web/root /path/to/new/webroot
update the red entries to reflect your configurations
mysqldump
update the red entries to reflect your configurations - your wordpress database info can be found in the wp-config.php file.
… or via the command line like so ``mysq -p’wordpress_db_password’ -u’wordpress_db_user’ wordpress_db_name < dbexport.sql
update the red entries to reflect your configurations
In either case you will need to move the dbexport.sql file to a location off the server to be able to access it.
Here is a case study that you can reference as well.
http://radivis.com/how-i-migrated-my-wordpress-blog-to-digital-ocean-in-about-6-steps/