Backup for migrate

Public

Generate a tar.gz whith a makefile.make and makefile.sql, into a folder called makefile

You must create (mkdir makefile) in the root folder

</> CopyGet raw version
bash
  1. drush generate-makefile makefile/makefile.make --exclude-versions=drupal && drush sql-dump --result-file=makefile/makefile.sql && tar -zcvf makefile.tar.gz makefile

unzip and restore a tar.gz whith a makefile.make and makefile.sql, from a folder called makefile

</> CopyGet raw version
php
  1. tar -xvzf backup.tar.gz && drush make makefile/makefile.make -y && `drush sql-connect` < makefile/makefile.sql