It'd be great to allow remote imports of multiple sites at once or even entire platforms.

Comments

ergonlogic’s picture

Version: 6.x-1.x-dev » 7.x-3.x-dev
Issue summary: View changes

New features should be added to the 7.x-3.x branch.

snlnz’s picture

+1 has anyone done anything with this recently? It would be awesome to be able to batch migrate sites, I hear of various methods but no examples be nice to hear what others do to migrate sites in the masses.

colan’s picture

Title: Allow batch remote imports » Allow batch remote imports of multiple sites or entire platforms

Apparently not. Patches welcome!

bgm’s picture

It's possible to use 'provision-remote_import' from the command line, ex:

drush @server_XXXX provision-remote_import --old_url=test.example.org --new_url=test.example.org --platform=platform_civicrm --db_server=server_YYYY

Where server_XXXX is the remote server, platform_civicrm is the alias for my platform on the new server.

I wrote a short script (in Ansible): https://gist.github.com/mlutfy/6441b6db192528d7b22e823f3e30329c

The advantage of using Ansible is that we can list the sites in our inventory, define batches (migrate 10-15 sites at the time), and track which sites were migrated when. Ideally, it would also update the DNS as sites are migrated.