Loading...

Importing an existing Drupal site archive by using Drush

To import your Drupal website by creating a site archive file, you can use Drush.

Pre-requisites

Create a site archive file.

Steps

  1. Confirm that you have enabled SSH access to your Cloud Platform infrastructure.
  2. Copy mysite.tar.gz to /mnt/gfs/[site].[env]/import on your Cloud Platform infrastructure, using the following scp command:

    scp mysite.tar.gz [SITE].[ENV]@[INFRASTRUCTURE]:/mnt/gfs/[SITE].[ENV]/import                                                        

    where:

    • [SITE] is the sitename of your application on Cloud Platform.
    • [ENV] is the Cloud Platform environment (frequently prod, test, or dev).
    • [INFRASTRUCTURE] is the full DNS name of the infrastructure hosting your website.

    To find your [SITE] and [INFRASTRUCTURE] names, sign in to the Cloud Platform user interface and view the Infrastructure page for the environment. For more information on obtaining infrastructure information, visit Managing Cloud Platform infrastructure.

  3. Sign in to your environment on Cloud Platform by using the SSH address displayed on the Infrastructure page of the environment.
  4. In this SSH session, use the ah-site-archive-import command to import your application:

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

    where:

    • [SITE] is the same value from step 2.
    • [ENV] is the environment you’re updating (frequently prod, test, or dev).

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

Did not find what you were looking for?

If this content did not answer your questions, try searching or contacting our support team for further assistance.

Back to Section navigation