is there any way to export and import nodes programmatically...? While import if the node already exists then it should be updated without creating a new node.


Try the Node Export module

This module allows users to export nodes and then import it into another Drupal installation, or on the same site.

Using this module you can save yourself a lot of time setting up new websites that have similar nodes to websites you've already made, migrating nodes to new Drupal versions, or between development/staging/production sites.

You will need the same content types for the imports to work (unless using Feeds to import), and ideally relevant compatibility with fields, and modules

  • i used that module but it creates duplicate nodes. – Mukilan R Oct 7 '14 at 13:14
  • i also tried by changing the node export settings to " Create a new revision of the existing node " – Mukilan R Oct 7 '14 at 13:15
  • @Mukil things you already tried should be in question. It's a waste of time to guess what you tried, or to provide you answers you know won't work for you. – Mołot Oct 7 '14 at 13:15
  • 1
    @Mukil that's not my tip. Please read Help Center / Asking. – Mołot Oct 7 '14 at 13:16
  • 1
    @Mukil that's exactly why you should read Help Center. Everyone needed to do it when they, well, when WE was noobs. – Mołot Oct 7 '14 at 13:18

You'll most likely want to use

I haven't used either myself, so I can't be of much more help. But I believe they can both be used to import data, and update nodes if they already exist.

Not the answer you're looking for? Browse other questions tagged or ask your own question.