Skip to content

Instantly share code, notes, and snippets.

@DILL44
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DILL44/7e10e45fc4e17fecb513 to your computer and use it in GitHub Desktop.
Save DILL44/7e10e45fc4e17fecb513 to your computer and use it in GitHub Desktop.
install node_export, export node and delete node_export #comming soon with importing node
#!/bin/bash
# $1 path to the first platform
# $2 path to the segond platform
# $3 list of the node id to export
cd $1
drush cc drush
drush dl node_export_feeds, node_export_features, node_export_dependency, node_export_relation, node_export
drush pm-enable node_export
drush ne-export $3 --file=node_export
cd $2
drush cc drush
drush dl node_export_feeds, node_export_features, node_export_dependency, node_export_relation, node_export
drush pm-enable node_export
drush ne-import $3 --file=$2/node_export
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment