Migrating a site from another Aegir installation

In case you ever need to migrate a site from some other Aegir installation to a different one, you can follow the instructions here. If you are like me, who has little time between day time job, looking after a kid and sleeping, you tend to skip to the section where it has the code you need to copy-paste-edit. Well, if you get something like this when executing your pasted code:

PHP Fatal error: Allowed memory size of 201326592 bytes exhausted (tried to allocate 20 bytes) in /var/aegir/.drush/provision/provision.context.inc on line 31

Fatal error: Allowed memory size of 201326592 bytes exhausted (tried to allocate 20 bytes) in /var/aegir/.drush/provision/provision.context.inc on line 31
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Allowed memory size of 201326592 bytes exhausted (tried to
allocate 20 bytes) in /var/aegir/.drush/provision/provision.context.inc,
line 31

You had the platform name wrong because you thought it would be the same as the one you gave it when you created it. It’s not. Do this:

drush sa | grep platform

To find the real name of the platform and rerun your command and it should work.

Tags:

Leave a comment