Posted by brashquido on October 4, 2011 at 7:27am
Hi All,
I'm looking to do an upgrade of my website from D5 to D7, however as a rather big cleanup/purge is in order due to the widespread use of now unmaintained contrib modules I was thinking I might start a fresh D7 install and just import the content I want from my D5 site. Is this a viable approach, and if so are there any modules that will help in being able to export content from my D5 site and then import it to my D7 site? Things like preserving URL aliases, users, permissions/roles, taxonomy and comments will be pretty important. Thanks.
Comments
Me Too....
I am in the exact, I mean the Exact same boat! I have a large, rather complicated, website that was built by a subcontractor on Drupal 5. the time is come to finally get them upgraded. However I am having all kinds of issues, bugs, module update problems, etc.
Initially I was just going to upgrade them to version 6. Both of these issues I'm thinking about scratching everything and just going to version 7. I'm asking the same questions is this a viable approach? Are there any modules that will help? Preservation of URL aliases would be awesome.
Thoughts?
I've done this migration
I've done this migration before, so I would recommend doing a clean build. Its a lot of work, but its easier than trying to upgrade to Drupal 6 first, then Drupal 7. The main problem is that many modules no longer exist in Drupal 7 compared with Drupal 5, so you need to build using new stuff to get the same result - or redo it a different, possibly better, way.
As for the migration itself, you can look at the Migrate module (http://drupal.org/project/migrate), although you do need some knowledge about coding for that. Another option is Feeds (http://drupal.org/project/feeds), which can create nodes from pretty much any source. I have used Migrate 1.x before and liked it, but the 2.x was a bit more complicated so I've never used it. I also haven't used Feeds for a migration, but it definitely sounds simpler from what I've been told.
______________________________________________________________________________________________________
mybesinformatik.com - Drupal website development
Migrate
May be, my cookbook on http://drupal.org/node/1285276 may help you.
Good luck!
Wusel
Drupal-to-Drupal Data Migration
And you can use the Drupal-to-Drupal Data Migration module too.
-Kristen
Blog: http://kristen.org
Drupal 7 Multilingual Sites: http://kristen.org/book
I hear the migrate one works
I hear the migrate one works well. Make sure you make a list of modules that your site is dependent upon. Make sure they are D7 ready. I would do a clean install of D7 and see if you can get functionality first.
---
http://greenworkexperience.com
Custom module
Like others have said, you can use the Migrate module or Feeds. Feeds is simpler to implement, but Migrate is more powerful.
Another option is to write a custom module to get the data out of the D5 database and then node save. This is the approach I am taking in upgrading my blog from Drupal 5 to 7.
Quicksketch (Nathan Haug) has done this we well and his custom module can be found here: http://quicksketch.org/node/5739
I have used that as a starting point. You will need to change some of it, especially around the custom content types. If you have mainly stories and pages than it is much simpler.
One thing his module doesn't take into account is URL aliases. But that looks fairly easy to migrate. The url alias table structure is almost the same in D7 except that it has a language column.
I hope that helps. I will probably blog about the changes I have made to Quicksketch's module once I have finished and completed the migration.
-----
BeFused - Drupal tutorials