Skip to content

Backup Website Before Cancelling Hosting: Keep Both Copies

Backup website before cancelling hosting the right way: a server backup to restore later, an offline copy you can open, and a fix if hosting already ended.

Website Downloader 10 min read

If you're working out how to backup website before cancelling hosting, the short answer is to make two copies while the site is still online. The first is a full server backup of all files plus the database, which you can restore on a new host later. The second is an offline copy of the finished pages, which opens in any browser without a server. Download both to your own storage before the cancellation date. If the hosting has already ended, the Wayback Machine is your fallback.

Which route you take depends mostly on whether you can still log in. This guide covers three situations: you still have server access, you have no access, or the site is already gone. It ends with a checklist for the domain, email and storage, which matters most if you are cancelling because you are closing a business.

What happens to my website if I cancel hosting?

Hosting is rented space on a server. When the contract ends, the host stops serving your site and, sooner or later, deletes the account. That normally removes:

  • The website files: HTML and PHP files, themes, plugins, and uploaded images and documents.
  • The databases: for WordPress, Joomla, Drupal or any shop, this is where the posts, pages, settings, customer records and orders live.
  • Mailboxes hosted on the same account, including every stored message.
  • Server configuration: redirects, scheduled tasks, SSL certificates and anything else set up in the control panel.

The domain is a separate item. If you registered it with a registrar on its own, cancelling hosting does not touch it. It simply points at a server that no longer answers. If the domain came bundled with the hosting package, it is often tied to that account. Check whether cancelling also cancels the domain or lets it lapse, and transfer it out first if you want to keep it.

How long the files survive after cancellation differs from host to host. Some delete the account at once, while others keep it for a grace period. The terms of service or the support team will tell you. Until you have that in writing, plan as if everything disappears on the cancellation date.

Server backup vs offline copy: why you want both

Most guides stop at running a cPanel backup. That backup is essential, but you can't look at it. A cPanel archive is a compressed bundle of PHP files and a SQL dump of the database. To see your website again, you need a server running PHP and MySQL, you have to import the database, and you may need to fix configuration paths.

That is a lot of work years later, when all you want is to check what the old About page said or which prices you listed. Software also moves on, so an old WordPress install may not run cleanly on a modern server without updates.

An offline copy is the opposite. It holds the pages as visitors saw them, saved as plain HTML together with images, stylesheets, scripts and fonts. You open it by double-clicking index.html. What it can't do is go back into a CMS, because it contains no database and no admin area.

Server backupOffline copy
ContainsSource files plus databaseFinished pages, images, CSS, JS, fonts
How you open itRestore on a server with PHP and a databaseIn any browser, on any computer
Restore the working site laterYesAs a static site only, without forms or admin
Needs a login to createYes (control panel or CMS)No, only the public site
Best forBringing the site back to lifeA record you can check in ten years

Keep both. The backup covers the case where you want the site running again. The offline copy is the record you can actually open on any laptop, long after the hosting account and the CMS version are history.

If you still have server access: how to back up the website before cancelling hosting

1. Make a full server backup

  1. Log into your hosting control panel. In cPanel, use the Backup Wizard or the Backup page to create a full backup. Alternatively, download the home directory and each MySQL database separately, which is often easier to restore elsewhere. Plesk and most other panels have a comparable backup tool.
  2. On WordPress, a backup plugin can bundle files and database in one archive. Be aware that the built-in Tools > Export only exports posts and pages as an XML file. It does not include themes, plugins, settings or the uploaded images.
  3. Download every archive to your own computer. A backup left on the server is deleted together with the account. This is the step people miss when they mean to download website files before hosting expires.
  4. Check what you downloaded. Make sure the archive opens, the .sql file is not empty, and the uploads folder actually contains your images.

Don't skip the database. On any CMS or shop, the text of your pages lives there. The files alone give you an empty theme.

2. Save your email

Mail stored on the hosting account goes with it. Connect the mailboxes to an email client over IMAP and copy the folders to a local archive, or move them to a new email provider. Then update the domain's MX records to point at that provider before you cancel.

3. Take an offline copy of the live site

While the site is still online, make the browsable copy too. Paste the address into the form on the Website Downloader home page. It crawls every subpage and delivers the whole site, with images, stylesheets, scripts, fonts and media, as one ZIP file. It runs in the browser, so there is nothing to install. You can watch the progress live, and your computer doesn't need to stay on while it works. The complete guide to downloading a website as a ZIP covers the details.

Type the address, let the crawl count through the pages, then download one ZIP that opens offline. That is the record copy to keep alongside your server backup.

What if I no longer have the cPanel or WordPress login?

This happens often, and the usual checklists ignore it. There are three typical cases:

  • Lost credentials. If you still control the billing account at the host, you can usually reset the control panel password from there. Try that first, because it gets you the full backup.
  • An agency or freelancer holds the access. Ask them in writing for a full backup of files and database, plus admin credentials. Do this before you end the contract with them, and ask for actual files rather than a promise to keep them.
  • A managed host or website builder. There may be no server files you can download at all, and the platform's export usually keeps only part of the site. See the guides for Wix, Squarespace and Hostinger Website Builder for what each export includes.

In all three cases the public website is still online. That means you can save a copy of your website before cancelling hosting without any login, because Website Downloader reads the pages the way a visitor does. The Free plan needs no account and covers up to 100 subpages, with the archive kept for 1 day. For a larger site, the Single Site plan is a one-time payment of 7.99 EUR for up to 5000 subpages and an archive of up to 2 GB, kept for 30 days. All options are on the pricing page.

For WordPress specifically, converting WordPress to static HTML without a login walks through the process. It gives you the pages but not the database. If you rebuild in a CMS later, you will copy the content back in by hand.

What does an offline copy keep, and what stops working?

An offline copy keeps every public page and the links between them. It also keeps the images, stylesheets, scripts, fonts, videos and PDFs those pages use. For a business that is closing, this is usually exactly what you need: a faithful record of what the site said and how it looked.

Everything that is a file survives offline. Everything that needed the server to answer a request does not.

Anything that needs a server stops working:

  • Contact forms and newsletter sign-ups
  • Site search
  • Shopping carts and checkout
  • Comments
  • Member areas. Pages behind a login are not downloaded at all.

There are two more limits to check before you cancel. First, a site that builds its content entirely in the browser with JavaScript (some React, Vue or Angular single-page apps) can produce an archive with the page shell but not the content. Second, some sites refuse automated downloads, for example with a 403 response. The service reports that instead of handing you an empty archive. Open the ZIP and click through a few pages while the hosting is still active, so you still have time to try another route. If pages appear unstyled or without pictures, see downloaded website missing images and CSS.

My hosting has already expired. Can I still get the site back?

Possibly. Work through these in order:

  1. Contact the host straight away. Ask whether the account is still within its retention period and whether they can reactivate it or hand over a backup. Some will, sometimes for a fee.
  2. Search your own records. Look for old backup downloads on your computer or in cloud storage, files from a former developer or agency, and backup emails from a plugin.
  3. Use the Wayback Machine. The Internet Archive has captured many public websites over the years. If yours is among them, you can pick a capture date and rebuild the site from it.
Choose the capture that best represents the site, often the last one before it went offline, and turn it into a ZIP you can open or host again.

Website Downloader's Wayback Machine downloader does this as a one-time Wayback Restore for 14.99 EUR. It covers up to 5000 subpages, keeps the archive for 30 days, and removes the playback toolbar and the links back to archive.org. A restore of up to 100 pages is free. Monthly plans do not include restores.

Be realistic about the result. You get only what the archive captured, and some pages or images may never have been saved. You also get static pages, not the database or the admin area. The step-by-step guide to restoring a website from the Wayback Machine covers choosing captures and filling gaps.

Checklist before you cancel hosting or close your business

  1. Domain: find out where it is registered. If it is bundled with the hosting, transfer it to a registrar or decide consciously to let it go. An expired domain can be registered by someone else.
  2. DNS: export or screenshot the DNS zone, including MX records, TXT verification records and any subdomains.
  3. Email: migrate the mailboxes, point MX at the new provider, and send a test message.
  4. Server backup: files plus every database, downloaded to your own storage and checked.
  5. Offline ZIP: downloaded and opened. Save it to your own storage straight away, because archives on the service are kept for 1 day on the Free plan and 30 days on paid plans.
  6. Retention period: ask the host in writing how long the account data is kept after cancellation.
  7. Two storage locations, for example an external drive and a cloud folder. Label each copy with the domain and the date.
  8. Business records: if you are closing a company, some records may have to be kept for a set time. That depends on your country and situation, so check with your accountant or a lawyer. If the site's content could matter in a later dispute, see archiving a website for legal evidence.
  9. Only now, cancel the hosting.

FAQ

If I cancel hosting, do I lose my domain?

Not if the domain is registered separately. It stays yours and simply stops showing a website. If it came bundled with the hosting package, cancelling may end or orphan it, so transfer it to a registrar of your choice before you cancel.

How long does the host keep my files after I cancel?

There is no standard period. Some hosts delete the account immediately, while others keep it for days or weeks. Check the terms or ask support, and treat the cancellation date as the deadline for having every copy on your own storage.

Will my email stop working when I cancel hosting?

Yes, if the mailboxes are hosted on the same account. Copy the messages over IMAP or move them to a new provider. Then change the MX records before the hosting ends so new mail keeps arriving.

Can I restore the site later on a new host?

With a full server backup, yes. You upload the files, import the database and adjust the configuration, although an old CMS may need updating to run on a current server. An offline ZIP can also be uploaded to any host as a static site, but forms, search and the shop will not work.

Do I need the database as well as the files?

For any CMS or shop, yes. The page content, settings and orders are stored in the database, and the files alone give you an empty theme. A plain HTML site has no database, so the files are enough there.

  • backup website before cancelling hosting
  • website backup
  • web hosting
  • offline copy
  • Wayback Machine