How to Archive an Old WordPress Site So It Stays Online but Costs Almost Nothing
An old WordPress site can sit quietly for years, doing nothing but costing money. The blog you stopped writing, the client project that ended, the campaign microsite from 2021: each one still needs a VPS, a PHP stack, a database, and security updates. Shutting it down feels wasteful, because the posts, the links, and the search traffic still have value. The fix is to archive an old WordPress site properly: freeze the content in place, serve it from something cheap, and stop paying for a full server stack to keep a few pages alive. This guide walks through the three practical ways to do it, how to keep every URL working, and what each option actually costs.
Decide what it means to archive an old WordPress site
Archiving is not the same as deleting, and it is not the same as leaving the site running untouched. A live WordPress install needs PHP and MySQL updates, plugin patches, and someone watching for break-ins. An archived site needs none of that, because nothing on it can change. Before you pick a method, answer three questions.
- Does anyone still need to log in? If the answer is no, you can drop the database and the admin panel entirely. That alone removes most of the maintenance and most of the attack surface.
- Do the pages need to stay at the same URLs? Old links, bookmarks, and search results all point at the current addresses. Keeping them avoids broken links and lost traffic.
- How often will the content change? A true archive never changes. If you expect edits once a year, pick a method that lets you rebuild the site on demand instead of one that locks the content in stone.
If the content is static and the URLs matter, a static export is usually the best answer. If the site has search forms or dynamic bits you cannot lose, a frozen container keeps everything intact.
Make a full copy before you change anything
Never start an archive by editing the live site. Take a complete copy first: the database, the wp-content folder, and the wp-config.php file. A backup plugin can do this, but a plain command line copy is faster and leaves nothing to guess about.
mysqldump -u root -p your_database > archive-db.sql
tar -czf archive-files.tar.gz /var/www/your-site
cp /var/www/your-site/wp-config.php ./archive-wp-config.php
Store that bundle somewhere off the server, such as object storage or a second machine. If you want a sane retention plan for these bundles, the retention policy guide for old backups explains how to keep a few useful copies without letting them eat your disk. Then verify the copy: open the SQL dump and check it has real table data, and list the tarball contents to confirm wp-content/uploads is inside. A backup you never tested is a hope, not a backup. The guide to testing backup restores safely shows how to check a copy without touching production.
Note down the site’s URL structure and any forms or search boxes visitors use, since a static export cannot carry forms over.
Turn the site into static HTML
A static export crawls your WordPress site and saves every page as plain HTML, CSS, and images. No PHP runs, no database gets queried, and there is nothing for an attacker to log into. For a site that nobody edits anymore, this is the cleanest archive there is.
The simplest route is a plugin such as Simply Static or WP2Static. Install it on a copy of the site, run the export, and download the resulting folder. Before you trust the output, open a few pages and click around: check that images load, that internal links point at the new HTML files, and that no page links back to /wp-admin. Plugins sometimes miss paginated archives or attachment pages, so check those too. If you would rather test the export on a copy first, the guide to cloning a WordPress site for testing covers a safe way to do that.
You can also export with wget from the command line, which gives you full control over what gets pulled:
wget --mirror --convert-links --adjust-extension
--page-requisites --no-parent
https://example.com/ -P static-export
Either way, the result is a folder of files you can serve from any web server. A basic nginx setup for static files is all you need, and the static site hosting guide for nginx on Ubuntu walks through the server block step by step. Because there is no PHP and no database, the archive needs no patching and no monitoring beyond a certificate renewal. Search forms and comment forms will stop working, so replace them with a plain contact link or a third-party form service before you switch over.
Freeze the site in a stopped container
Sometimes a static export is not enough. A site with a working search box, a member area, or a plugin that generates pages on the fly will lose real function as flat HTML. In that case, freeze the whole WordPress stack in a container and only start it when you need it.
Build a Docker image that contains the WordPress files, the database dump, and the exact PHP version the site used. A small compose file keeps the pieces together:
services:
wordpress:
image: wordpress:6.7-php8.2-apache
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_NAME: archive
volumes:
- ./wp-content:/var/www/html/wp-content
db:
image: mariadb:11
environment:
MYSQL_DATABASE: archive
Run it once to confirm the site loads, then stop it with docker compose down. The image and the volumes sit on disk, costing nothing but storage, until you need them. When someone asks for a page that no longer exists or a plugin needs checking, start the stack, do the work, and stop it again.
This keeps the admin panel available on demand if you ever need to export a post or check an old setting. The trade-off is that the frozen stack still runs old software when it starts, so never expose it to the public internet. Bind it to localhost and treat it as a private tool, not a public site.
Compare the real costs of each option
Prices below are rough, approximate figures based on common low-end plans at the time of writing, so check official pricing before you commit. The point is the size of the gap, not the exact number.
| Option | Monthly cost (approx.) | Maintenance | Best for |
|---|---|---|---|
| Keep live WordPress on a VPS | $4–$10 | Weekly updates and patching | Sites that still change |
| Static export on cheap static hosting | $0–$2 | Almost none | Finished blogs and old campaign sites |
| Static export on your existing VPS | $0 extra | Certificate renewal only | Sites sharing a server you already pay for |
| Frozen container, stopped | $0 extra (storage only) | None while stopped | Sites you may need to revive |
| Object storage plus CDN | $0–$1 | Almost none | Large image-heavy archives |
The pattern is clear. A live WordPress install costs several dollars a month forever, plus your time, while a static archive costs close to nothing and asks for nothing. If you have five old sites on one VPS, converting them to static files can let you drop to a smaller server plan.
Keep the URLs alive and lock the doors
An archive that breaks every old link has thrown away half its value. Before you switch off the live site, crawl it and save the full URL list, then crawl the new version after the export is live and compare the two. Every old URL should return a 200 status, or a 301 redirect to its new home. Watch out for the URLs people forget: paginated category pages, author archives, feed URLs, and attachment pages. A quick check with a link checker or a small script that requests each URL and logs the status code will catch the stragglers.
Then shut the doors. A static site has no login page, no comments, and no XML-RPC endpoint, which removes the usual WordPress attack targets in one move. If you keep a frozen container instead, disable comments and user registration, block /wp-admin at the web server level, and remove any admin accounts you no longer need. Locking down uploads helps too: splitting the uploads folder away from the code makes it easier to serve the archive from read-only storage, as the guide to separating WordPress uploads, database, and code explains.
Leave a note for your future self: a short text file next to the archive with the date, the method used, and where the original database backup lives. Check the archive once a year by loading the homepage, clicking three links, and confirming the certificate renews. That is the whole maintenance plan.