Movable Type
How to export the data
First you need to locate the following file:
- [blueprint installation]/script/importer/mt_export.sh
This is the script that will export the data from your Moveable Type database.
FTP this file to the webserver your Moveable Type site is hosted on. Then log into your webserver using SSH and navigate to the directory that you FTPed the mt_import.sh file to.
Run the following commands, replacing the fields in capitals with the MySQL connection details from your mt-config.cgi file.
chmod u+x mt_export.sh
./mt_export.sh -d DATABSE -u DBUSER -p DBPASSWORD -o DBHOST
This will produce a file that looks something like: mt_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:movabletype: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.