How to download a full website

Published

Updated

🔻

Pull files, data and dependencies.

This guide explains how to download all necessary application data from a hosting provider to run a website elsewhere. Technical skills are required.

When to download

Development happens in a local development environment, so a working copy usually exists. A full download is needed when:

  • a new developer joins and the old copy is gone
  • a previous developer left without handing over the project
  • the local copy is lost
  • the project gets archived or moves to another host

A website consists of code, dependencies, files such as uploads, and the database. Each part comes from its own place.

Code

After git deployments, clone the repository and run composer install to get the Composer dependencies. Check that the repository holds the deployed state.

After SFTP uploads, or when the repository may be behind, download the whole project like the files below.

Uploads and other files

Git only syncs up: uploads and other files created on the environment are not in the repository. Download them with:

  • rsync, for a folder or the whole project
  • SFTP, in a GUI client

Database

Export the database and import it locally, see database down.

Backups

With the backup component booked, download a backup of files and database from the dashboard, see working with backup files.

Check the copy

Run the downloaded site locally and click through it. Compare file counts and the database size with the environment before deleting anything there.

Written by humans and AI in collaboration.

AI use & editorial processEdit on GitHub ↗