Skip to main content
Last Reviewed: December 13, 2022

Upload Files


Now that you've added your database, you need to add your files.

Files refer to everything stored inside sites/default/files. This usually consists of uploaded images, generated stylesheets, aggregated scripts, etc. Files are not under Git version control and are stored separately from the site's code.

You can use the Pantheon Dashboard, SFTP, or Rsync to upload your site's files.

Follow the steps below to export a tar.gz or .zip file of your directory files.

  1. Navigate to your Drupal site's root directory to run this command:

    cd web/sites/default/files
    tar -czf ~/files.tar.gz .

    Now you have created an archive file in your user's home directory.

  1. Select the Dev environment in the Site Dashboard.

  2. Select Database / Files.

  3. Click Import and then add your archive (based on file size) by following the steps below.

    If your archive is under 100MB, upload the file directly:

    1. Navigate to the Archive of site files field > click File > Choose File.

    2. Select your local archive file > click Import.