How to Get Your Website Files From Your Hosting Company

The Venbit TeamUpdated November 29, 20266 min read

Getting your files from the host

Ways out

  • 1A cPanel full backup
  • 2FTP or SFTP
  • 3WordPress export: content only

The short answer

To get your website files from your hosting company, log in to the control panel and run a full account backup, which packs your files, databases and DNS records into one download. With no control panel, copy the files over SFTP and export the database separately. Wix, Squarespace and Shopify never hand over a working copy of the site, only exports of some content.

Take the copy while the account is still active and paid. Hosting terms put the job of keeping a backup on you, and once an account is terminated the data is deleted from the server, so a helpful support agent has nothing left to send.

A website is four pieces, and you want all of them

  • The files. Pages, images and the software itself, in a folder called public_html on most hosts.
  • The database. On WordPress and most other systems, your text, settings, users and menus live here. Files without it are a shell.
  • Email. Mailboxes on the same account, with their forwarders and filters.
  • The DNS records. The settings that say where your site and your mail live.

On cPanel, one backup takes the whole account

If your control panel is a grid of icons with names like File Manager, phpMyAdmin and Backup, it is cPanel, which many shared hosts use. The Backup tool is the one that matters.

  1. 1

    Open Backup and click Download a Full Account Backup

    Choose Home Directory as the destination and click Generate Backup. cPanel builds the archive in the background.

  2. 2

    Come back and download the file

    The finished backup appears under Backups Available for Download as a .tar.gz file.

  3. 3

    Know what is inside

    cPanel's documentation lists the home directory, MySQL database dumps, DNS zone files, SSL certificates and keys, email autoresponders and filters, and cron jobs.

  4. 4

    If the full backup fails, take the partial ones

    The same screen offers the home directory, each database, and your email forwarders and filters as separate downloads.

Hosts with their own panel have a backup screen that does the same job under a different name. If you cannot log in at all, start with how to get back into your own website.

With file transfer only, the database is a separate job

Some hosts give you only FTP or SFTP. Ask support for the server address, username and password, and use SFTP if it is offered, since it sends your password over an encrypted connection. Connect with a free client such as FileZilla, find the public_html or www folder, and drag the whole thing to your computer. A large site can take hours.

File transfer never includes the database. Ask the host for a .sql export of each database, or export it yourself from phpMyAdmin if the host provides it. This is the most technical route here, and it is reasonable to hand it to a developer.

The WordPress export tool is not a backup

Owners run Tools, then Export, get a file, and believe they have their website. WordPress documents what that XML file holds: posts, pages, comments, custom fields, categories, tags and users. It does not hold the theme, the plugins or the image files in your uploads folder.

For a full copy you need three things: that export, the wp-content folder (theme, plugins and uploads), and a dump of the database. A backup plugin collects all three in one go, and how to back up a WordPress website yourself walks through it, including the restore test.

Wix, Squarespace and Shopify keep the design

On a website builder you rent a system, and there is no folder of files to download. You get an export of some content, and the layout stays behind. This is what each company's help pages say today:

PlatformWhat you can takeWhat stays behind
WixContacts as CSV, up to 50,000 per export. Images and videos you uploaded yourself.The site itself: Wix says a site must be hosted on Wix's servers. Blog post export is still listed as a feature request. Free Wix and Shutterstock media.
SquarespaceAn .xml file with layout pages, one blog page and its posts, text blocks and image blocks. Products and contacts as .csv.Album, cover, index, portfolio and store pages. Audio, video and product blocks. Drafts, style settings, custom CSS and any second blog page.
ShopifyThe theme as a .zip, emailed to your staff login address. Products, customers, orders and discount codes as CSV.The theme file leaves out products, collections, menus, pages, blog posts and images. For blog posts and pages, Shopify's own guide says to copy and paste.
What each platform lets you export

So on a builder, plan for a rebuild. What you are rescuing is your words, pictures, contacts and product data, which is the part that took years. If you do not know which system you are on, here is how to check what your website is built with.

If the panel is closed to you, ask in writing

When the account is suspended or you cannot find the backup tool, open a ticket so there is a record, and ask for specific things by name:

  1. 01A full account backup, including the home directory and all databases, as a download link.
  2. 02A copy of the DNS zone for each domain, including all MX and TXT records.
  3. 03A list of every email account and forwarder, and whether mailbox contents can be exported.
  4. 04The date the account is scheduled to be deleted.

If the login belongs to a developer who has stopped answering, the route is different: what to do when your web developer disappears.

Mail is the piece people forget. If the mailboxes are on the host, set up the new ones before you cancel, in the order shown in how to switch hosting without losing your email.

Once you have the copy, store it somewhere that is not the host, name the folder with the domain and the date, and have someone restore it to a test site once. That test is how you find out the database was never in there. If you would rather this was somebody's job, daily off-site backups are part of our maintenance plans.

More website guides

Every question in this series, from Fix website problems.

Symptoms & emergencies17
What happens if...11
Plans & hiring1
Ownership & switching11
Platform-specific3
Seattle & local1

Questions & Answers

  • While the account is active and paid, you can download them yourself and most hosts will help. After that it depends on the terms you agreed to. Bluehost's and HostGator's agreements both say an account suspended for 30 days may be terminated with the loss of all data, and both make backups your responsibility.

Keep reading

Let’s grow your business

Tell us about your business. We would love to hear from you. Or call us at (425) 314-1415.

Join the local businesses that grow with us

  • Pawn Fathers
  • Protectee
  • Pinnacle Energy Services
  • See Clearwater Beach
  • Q Blinds
  • Domaine des Florines
  • Track & Field AI
  • Edgewater Commercial Park
  • Colour Play Salon
  • Houston Hurricane & Security