summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Rossouw2010-06-21 00:32:05 (GMT)
committerAdrian Rossouw2010-06-21 00:32:05 (GMT)
commit5a51e4712f6524b322a0716797710ba734b73fcc (patch)
tree24ad84ba770bc93e54b79af0cadcc51867852a7f
parent9d524495be50c4032340997af9cd9e21a0f75496 (diff)
clone also supports db server migration now.dev-restore
-rw-r--r--platform/clone.provision.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/clone.provision.inc b/platform/clone.provision.inc
index d03bf97..778f526 100644
--- a/platform/clone.provision.inc
+++ b/platform/clone.provision.inc
@@ -44,7 +44,11 @@ function drush_provision_drupal_provision_clone($new_uri, $platform = null) {
$options['platform'] = (isset($platform)) ? $platform : $options['platform'];
$options['aliases'] = array();
$options['redirection'] = 0;
-
+
+ if ($db_server = drush_get_option('new_db_server', FALSE)) {
+ $options['db_server'] = $db_server;
+ }
+
drush_backend_invoke_args('provision-save', array($new_uri), $options);
# note that we reset the aliases so they don't conflict with the original site