migrate-from-d7.sh 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #! /bin/bash
  2. export PATH=$Path:/bin:/usr/bin:/usr/local/bin
  3. DATE=`date +%d-%m-%y/%H:%M:%S`
  4. echo -e "* * * * * * * * * * * * * * * *"
  5. echo -e "* *"
  6. echo -e "* Migration *"
  7. echo -e "* *"
  8. echo -e "* $DATE *"
  9. echo -e "* *"
  10. echo -e "* * * * * * * * * * * * * * * *"
  11. echo " "
  12. echo "Migrating Files"
  13. drush mim d7_allpublicfiles --feedback="1000"
  14. sleep 5
  15. echo " "
  16. echo "Migrating Taxonomy"
  17. echo "Migrating thesaurus"
  18. drush mim d7_taxonomy_term_thesaurus --update --feedback="100"
  19. echo " "
  20. drush mim d7_taxonomy_term_thesaurus_i18n --update --feedback="100"
  21. sleep 5
  22. echo " "
  23. echo "Migrating tags"
  24. drush mim d7_taxonomy_term_tags --update --feedback="100"
  25. echo " "
  26. drush mim d7_taxonomy_term_tags_i18n --update --feedback="100"
  27. sleep 5
  28. echo " "
  29. echo "Migrating companies"
  30. drush mim d7_taxonomy_term_company --update --feedback="100"
  31. sleep 5
  32. echo " "
  33. echo "Migrating showroom"
  34. drush mim d7_taxonomy_term_showroom --update --feedback="100"
  35. sleep 5
  36. echo " "
  37. echo "Migrating Users"
  38. drush mim d7_users --update --feedback="1000"
  39. echo " "
  40. drush mim d7_user_profile --feedback="1000"
  41. echo " "
  42. drush mim d7_uc_roles_license --update --feedback="200"
  43. sleep 5
  44. echo " "
  45. echo "Migrating Nodes"
  46. echo "Migrating Materials"
  47. drush mim d7_node_materiau --feedback="1000"
  48. echo " "
  49. drush mim d7_node_materiau_i18n --feedback="1000"
  50. sleep 5
  51. echo " "
  52. echo "Migrating breves"
  53. drush mim d7_node_article --feedback="100"
  54. echo " "
  55. drush mim d7_node_article_i18n --feedback="100"
  56. sleep 5
  57. echo " "
  58. echo "Migrating simplenews"
  59. drush mim d7_simplenews_nodes --feedback="200"
  60. drush mim d7_simplenews_subscribers --update --feedback="1000"
  61. sleep 5