Is there a command for making a copy/clone of a site created with the quickstart-create command?

CommentFileSizeAuthor
#3 add_archive_and_restore-1218492-3.patch6.99 KBKLicheR
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

MichaelCole’s picture

Hi, this is being worked on in drush5, and quickstart will probably take advantage of it. For now, there is no good way to do this other than to copy the files and database manually.

undersound3’s picture

ok thanks for the heads up

KLicheR’s picture

Category: support » feature
Status: Active » Patch (to be ported)
FileSize
6.99 KB

I've added 2 Drush Quickstart commands that can archive and restore a Quickstart site on a different domain name:
drush quickstart-archive (qa)
(required) --domain=the_site_you_want_to_archive.com

  • Create a tarball with the code and the DB in ~/websites/.
  • The database name/username/password of file "/sites/default/settings.php" are replace with "#######_###".
  • All the instances of the old domain in the dump sql are replace with "#######.###".

drush quickstart-restore (qr)
(required) --domain=the_new_site_you_want_to_create.com
(required) --archive=the/path/of/the/archive.tar.gz

  • Create the DNS config.
  • Extract the code to a new directory.
  • Fix permissions.
  • Replace the "#######_###" values in "/sites/default/settings.php" with the new ones.
  • Replace the "#######.###" values in the dump sql with the new domain name.
  • Correct the length of strings in PHP serialized in the DB.
  • Import the new dump sql.
  • Create the apache configurations (and restart it).
TravisCarden’s picture

Status: Patch (to be ported) » Needs review

I believe you're looking for "needs review", @KLicheR. :) See Status settings for an issue.

undersound3’s picture

Thanks for this !