The database is the part an upgrade does not back up.

WHMCS keeps a copy of the files it is about to replace. Your clients, invoices, orders, tickets and settings all live in the database, and the database is not in that copy. Nebula dumps it, encrypts it off the server, and proves it restores before any release touches the install.

Every tbl table, plus your modules' Restore tested before the upgrade Priced per install
What sits in that databasenot in the file zip
Clients and contactstblclients
Orders and order itemstblorders
Invoices and transactionstblinvoices, tblaccounts
Products, pricing, couponstblproducts
Gateway and module settingstblpaymentgateways
Email templates and KB articlestblemailtemplates
Tickets and repliestbltickets
Each of these is a table WHMCS writes to during an upgrade, and none of them is in the backup the updater takes.

What the built-in updater keeps, and what it leaves behind

WHMCS documents all of this. It is not a flaw in the updater, which does what it was built to do for files alone.

The files it replaces are saved
Before a maintenance release, WHMCS copies the files it will replace into tools/AutoUpdates/backups. If the update fails it puts those files back.
The database is not in that copy
Migrations still run during the upgrade, rewriting tables. Nothing in the updater saves or restores the schema, so a file rollback returns the old code to a database that has already moved.
Only maintenance releases run unattended
The last number changing, 9.1.0 to 9.1.1, is the automated case. A new minor or major version is a scheduled job, and it is the one that tends to break addon modules.
Edits inside default folders get overwritten
An update replaces the default themes, the order form templates, modules/ and the language files. WHMCS asks you to keep customisations in copies and override paths for exactly this reason.
Three attempts and then the files roll back. The database has nothing to roll back to, which is why a billing install can lose a day of orders and still say the update failed cleanly.

Everything except the WHMCS core

The encoded core is the one part you never need to carry. It is replaced wholesale on every release and rebuilt from the same zip, so a capture that leaves it out is smaller, faster, and still gives you back everything you actually changed. Three scopes, chosen per site.

ScopeWhat it holdsWhen to use it
Database onlysmallest Every tbl table, plus the tables your addon modules created. Taken in one consistent read, so invoices do not land half written. Between releases, hourly, or before a module install.
Database and custom layerdefault The dump above, plus everything outside the encoded core. This is the set that upgrades overwrite or never ship.
  • configuration.php
  • modules/
  • your theme and order form
  • includes/hooks/
  • lang/overrides/
  • assets/css and custom js
  • attachments/
  • downloads/
  • templates_c excluded
  • vendor excluded
Before every upgrade. A restore rebuilds the install around the release you were on.
Full installlargest The whole tree including the encoded core, with the database. Nothing outside is required to put it back. A host migration, a licence you cannot re-download, or an install on an end of life version.
Core files are hashed against a manifest of the release. Any file that does not match is either customised or corrupt, so both are captured, and the list of edited core files is a useful thing to have on its own.

Six steps, in a fixed order

If a step cannot be completed, the job stops there and reports which one.

  1. 1
    Dump the database, then read it backA consistent dump, imported into a scratch server, table counts compared. A file on disk that has never been opened is not a backup.
  2. 2
    Capture the custom layerTemplates, modules, hooks, overrides, uploads and the configuration file, with the core hashed against the release manifest.
  3. 3
    Rehearse the restoreScratch database, custom layer, stock release. If the client area does not load from that, nothing is written to the live install.
  4. 4
    Check the target releasePHP version, required extensions, addon modules with known breakage. A failed check stops here.
  5. 5
    Apply and verify with real requestsAdmin sign-in, client area, one invoice, one ticket, one cron response. Four out of five is a failure.
  6. 6
    Restore, or record itA red check puts the database and the custom layer back together and names the step that failed. A clean run is written to the log.
When a step fails
The dumpNothing else runs. The previous snapshot stays and the job reports the table it stopped on.
The custom layerSame. Both halves stay from the last good snapshot rather than mixing dates.
The rehearsalThe live install is untouched, and the snapshot is kept so the restore can be inspected.
Apply or verifyDatabase and custom layer go back to the snapshot taken minutes earlier, and migrations are reversed by the restore itself, not by a downgrade script.
The cron checkUsually a schedule problem. The upgrade stays applied and the warning is raised.

The parts WHMCS will not let it do

Each one comes from how WHMCS is built. Reading them here is cheaper than meeting them during an incident.

It does this instead

  • Restores database and custom layer togetherOne operation, one outcome, no install half on last week's schema.
  • Replaces encoded files wholesaleA restored core file is a byte for byte copy, never a patched one.
  • Takes a full install when you ask for oneFor migrations, or when the release you are on cannot be downloaded again.
  • Reads, captures, restoresInvoice data, client records and gateway settings are copied for safekeeping and never edited.

It will not

  • Hand patch the coreMost of the tree is encoded, and an edited core file reads as corrupt.
  • Undo a migration with files aloneSchema changes run one way, so the recovery is the database restore.
  • Rebuild a partial snapshot without the matching releaseA database and custom layer restore needs the same WHMCS version underneath. Keep the version recorded, or take a full install.
  • Install itself from an uploader screenWHMCS has none, so onboarding needs a key rather than a paste.

Run the first builds against your own installs

The dump, the encrypted storage, the file browser and the restore rehearsal already run in the WordPress edition. The WHMCS addon module and the command line upgrade driver are what is left.

Per installsame shape as the WordPress edition