Importing an existing application using Drush

To import your application to Acquia Cloud using Drush, you must create a site archive file, and then import the file to Acquia Cloud.

Creating a site archive file

For information about how to create a site archive file with Drush, see Creating a Drupal site archive for import. Copy mysite.tar.gz to your local computer.

Importing the site archive file with Drush

To import the site archive file with Drush, complete the following steps:

  1. Verify that you've enabled SSH access to your Acquia Cloud server.
  2. Copy mysite.tar.gz to /mnt/gfs/[site].[env]/import on your Acquia Cloud server, using the following scp command:

    scp mysite.tar.gz [site].[env]@[server]:/mnt/gfs/[site].[env]/import

    where [site] is the site name of your application on Acquia Cloud, [env] is the Acquia Cloud environment (one of prod, test, or dev), and [server] is the full DNS name of the server that hosts your site.

    To find your [site] and [server] name, sign in to the Acquia Cloud interface and view the Servers page for the environment.

  3. Using SSH, log in to your environment on Acquia Cloud, using the SSH address displayed on the Servers page for the environment.
  4. In this SSH session, use the following command to import your application.

    drush @[site].[env] ah-site-archive-import /mnt/gfs/[site].[env]/import/mysite.tar.gz


    • [site] is the same value from step 2.
    • [env] is the environment you're updating. Acceptable values are dev (Development), test (Staging), and prod (Production).

After you import your site archive, you can import your files and check out a local copy of the application from your Acquia Cloud code repository.

Drupal Projects

Contact supportStill need assistance? Contact Acquia Support