Upgrades: Exponential Network (xne)
Exponential Network (code name xne) is the tool 7x uses to upgrade Exponential installs
safely. It finds out what an install is, plans the upgrade, makes a verified backup, upgrades the files and the
database with the kernel's own tools, checks the result, and rolls everything back by itself when any
step fails.
Who it is for
- Site owners and administrators who run Exponential 6.x and want to stay on a current, supported release without a risky manual upgrade.
- Hosting teams that look after many installs: plan all of them, then upgrade one at a time, each with its own lock and backups.
- Developers who want a machine-readable answer: every command can print one JSON object (
--json).
What it does
- Detect the install: version, install type (git, Composer or plain files), PHP, database, extensions, siteaccesses and the kernel tools it has.
- Find the traps that broke upgrades done by hand before, and refuse to start when one would break the site.
- Plan the upgrade on a channel (stable, beta, main or security) or to an exact release, and list every file, local edit and database step before anything changes.
- Upgrade with a verified backup first, then a health check: written files equal the release, the install starts, every health URL answers.
- Roll back automatically on any failure, or by hand later with
xne rollback. Nothing is deleted: files are moved aside into the backup.
It is pure PHP (7.4 to 8.5) and needs no shell tool for its work. It works with MySQL and MariaDB, PostgreSQL, SQLite, MongoDB and Oracle, always with a verified backup first and an automatic rollback when a step fails. Full upgrades with exact rollbacks are proven on every one of them (database engines). It is free software under the GNU General Public License, version 2 or later.
composer require se7enxweb/xne), and the
network API v1 answers on this site. One known limit on Windows:
a full 6.0.14 to 6.0.15 upgrade waits on a kernel autoload fix and rolls back safely until then.
See the status.A first look
# what the install is
xne detect --root=/var/www/vhosts/example.com/doc/www.example.com
# what an upgrade would do
xne plan --root=...
# the plan, nothing changed
xne upgrade --root=... --dry-run
# backup, upgrade, health check, auto-rollback
xne upgrade --root=...
# files and database back to a backup
xne rollback --root=...
Inside an install, the kernel console runs the same engine for that install: exp:network:check,
exp:network:plan, exp:network:upgrade and exp:network:rollback.