October 16, 2003
MT: Importing from Blogger When moving to a new location, it is difficult to decide if a fresh start is in order or if all the baggage from the prior needs tom come along. My decision was to bring it all with me, all 3 months worth of posting. I was pretty pleased with my posts, even the early ones and I wanted my new site to be able to search through the old posts. I also wanted to never refer back to my ugly old site ever again.

Movable Type provides some fairly decent instructions on how to do this, but I wanted more than just a simple import. The rest of this post details how I migrated my blogger/blogspot content over to Movable Type. I hope someone somewhere finds it helpful.

Step 1: Exporting from Blogger

Exporting from blogger was actually pretty easy, once I figured out a very efficient way to do it. It is possible to export without actually publishing the export data and overwriting your existing site. Here is how:
  1. Log into Blogger and select the blog you wish to export
  2. Click the Settings tab
  3. Click the Formatting tab
  4. Change Show value to 999 Days
  5. Change the Timestamp Format to "mm/dd/yy hh:mm:ss xx"
  6. Click the Save Changes button at the bottom of the page
  7. Now click the Template tab
  8. Select all the template text and press delete
  9. Copy the template from below and paste it into the template window
  10. Click the Preview button
  11. When the new browser window appears, click the View option and then Source (this will open up notepad with the exported data)
  12. At the top of the document, delete all lines above (and including) the <body> tag
  13. At the bottom of the document, delete all lines below (and including) the </body> tag
  14. Save the file as "import.txt"
  15. Back in the blogger window, click the Cancel button
  16. Click the Formatting tab
  17. Change Show value to its original value
  18. Change the Timestamp Format to its original value
  19. Click the Save Changes button at the bottom of the page
Here is the template:
<Blogger>
AUTHOR: <$BlogItemAuthor$>
DATE: <$BlogItemDateTime$>
TITLE: <PostSubject><$BlogItemSubject$></PostSubject>
PRIMARY CATEGORY: 
STATUS: Publish
ALLOW COMMENTS: 1
ALLOW PINGS: 1
CONVERT BREAKS: 0
-----
BODY:
<$BlogItemBody$>
--------
</blogger>

Step 2: Massaging Your Export File

At this point, you are ready to do the import. However, if you are interested in categorizing your posts or including the comment from your old blog, it can be done by tweaking the import file.

Categories: To categorize the posts, simply type the category after the PRIMARY CATEGORY: line for each post. Movable Type is kind enough to automatically create the categories during the import, but that also means that any typos will also be created. It is very possible to categorize the posts after they are imported so this is completely optional. I chose to do it this way because I wanted to get to work and was still waiting for my dns to resolve. Hindsight tells me that it is definitely easier to categorize from within Movable Type.

Comments: If you want to bring your comments with you, then you need to understand how the import format works. The eight dashes which follow the content of each post mark the end of the post. To add a comment to the file, simply insert the following immediately below the post content and above the eight dashes:

-----
COMMENT:
AUTHOR: 
EMAIL: 
URL: 
DATE: mm/dd/yyyy hh:mm:ss
(comment)
Now fill in the Author, Email (optional), URL (optional) and Date. Finally, replace the "(comment)" line with the actual comment text. Multiple comments for a single post are added in the same manner - always directly above the eight dashes. (This is a very tedious process and is completely optional. I rarely received comments but this still took considerable time and effort.)

Step 3: Importing into Movable Type

This is the easiest part. The official directions are here but here is a quick and easy set for you to follow:
  1. FTP to your host and open the directory where you installed Movable Type
  2. Create a new directory named "import" and open that directory
  3. Transfer the import file (import.txt) into the import directory
  4. Log into Movable Type and select the target weblog
  5. Click Import Entries
  6. Click the Import as me box (unless you want to preserve the original users)
  7. Select a default category - if you want one
  8. Click the Import button
  9. Republish the weblog
That''s it. Feel free to ask any questions if this doesn''t make sense. The Movable Type documentation is also a great resource!

UPDATE: This process has been tested and it does work with the latest release of blogger (version number unknown but whatever version was active on 08/04/2004).

If you decide to try these instructions with MT 3.0, please let me know how it turns out.

UPDATE: Discarded Lies has taken this template and added blogger comments.

Categories
Archives
March 2010
S M T W T F S
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Complete Archives

Tools
Search:
  Advanced Search

Mailing List:



Currently Reading
Recently Read
Animal Farm

Animal Farm
George Orwell

Life of Pi

Life of Pi
Yann Martel

The Fourth K

The Fourth K
Mario Puzo

Catch 22

Catch 22
Joseph Heller

the Sicilian

the Sicilian
Mario Puzo

The Quantum Rose

The Quantum Rose
Catherine Asaro

Members
Sponsors
Blogroll
Links
Stats
Entries: 2147
Comments: 2925
Trackbacks: 665
Members: 258

Most Recent:
  Entry: 11/09/08 9:38
  Comment: 11/17/08 12:27
  Visitor: 03/18/10 10:27

Powered by:
  ExpressionEngine

Extreme Tracking