Charles Yeung
Charles Yeung

Reputation: 38795

Drupal6 - Export bulk node

Suppose I have 100 nodes in content type of "product", I would like to export these nodes to a .sql or .csv file, could anyone suggest a solution?

Thanks

Upvotes: 2

Views: 3342

Answers (2)

ramiro
ramiro

Reputation: 898

You can use the node_export module with Drush from the command line in the root directory of your Drupal installation to export all nodes to a CSV file with the command:

drush node-export > export.csv

Upvotes: 0

Matt V.
Matt V.

Reputation: 9809

You could use the Views module to create a view of all your products, then use the Views Bonus Pack module to export to CSV format. There are lots of other Views add-ons that could be used to export in other formats, if needed.

However, it may depend on what you ultimately want to do with the exported nodes. If you need to import them into another Drupal site, I'd recommend checking out the Node Export module, which has its own export/import format.

Upvotes: 3

Related Questions