---
title: "Importing an existing Drupal site archive by using Drush"
date: "2024-02-14T06:18:38+00:00"
summary: "Learn how to import your Drupal site to Acquia Cloud Platform using the UI or Drush. Step-by-step guide for seamless migration."
image:
type: "page"
url: "/acquia-cloud-platform/importing-existing-drupal-site-archive-using-drush"
id: "62990a98-b6f6-47f9-8db5-c1bee184d4e7"
---

Table of contents will be added

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

Important

*   This method does not work with Drush 9 and 10 as the archive commands were removed in these versions. However, they were restored in Drush 11 and later. If you are using Drush 9 and 10 and want to import your Drupal site, use the [manual import](/acquia-cloud-platform/create-apps/import/manual) process instead.
*   This procedure is for Mac and Linux platforms. If your Drupal application is on a Windows platform, you must [manually import your application to Cloud Platform](/acquia-cloud-platform/create-apps/import/manual).
*   The [current Drupal version](/service-offerings/guide/software-life-cycle#supported-drupal-version) requires Drush version 11 or later. Newer versions of Drush, that is, version 11 and later, must be installed through Composer. Acquia does not manage the update to the newer versions. For more information, visit [About Drush on Cloud Platform](/acquia-cloud-platform/manage-apps/command-line/drush).

Pre-requisites
--------------

[Create a site archive file](/acquia-cloud-platform/create-apps/import/archive/archive-create).

Steps
-----

1.  Confirm that you have [enabled SSH access](/acquia-cloud-platform/manage-apps/command-line/ssh/getting-started) 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](/definitions/sitename) of your application on Cloud Platform.
    *   `[ENV]` is the Cloud Platform [environment](/acquia-cloud-platform/manage-apps/environments) (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](/acquia-cloud-platform/manage-apps/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](/acquia-cloud-platform/manage-apps/command-line/drush/custom-commands#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](/acquia-cloud-platform/create-apps/import/manual/manual-files) and [check out a local copy of the application from your Cloud Platform code repository](/acquia-cloud-platform/develop-apps/repository/checkout).