Wordpress
How to export the data
First you need to locate the following file:
- [blueprint installation]/script/importer/wp_export.sh
This is the script that will export the data from your Wordpress database.
FTP this file to the webserver your Wordpress site is hosted on. Then log into your webserver using SSH and navigate to the directory that you FTPed the wp_import.sh file to.
Run the following commands, replacing the fields in capitals with the MySQL connection details from your wp-config.php file.
chmod u+x wp_export.sh
./wp_export.sh -d DB_NAME -u DB_USER -p DB_PASSWORD -o DB_HOST
This will produce a file that looks something like: wp_export_12345678.tgz
FTP this file back to your local machine. Now you have the data zipped up and ready to import.
How to import the data
- Take a note of full path of the data file.
- Run the following command
rake importer:wordpress:build domain=YOURDOMAIN.COM
You will be guided through the process of importing data. Don't worry If you make a mistake; you can run the command again and the site data will be replaced. Note: Only the data will be replaced. Site templates will remain untouched.