• Applicable Software: MokonyxBackup
  • Min Version Number: 01.00.01
  • Max Version Number: Not Applicable

When it's time to bring a site back, MokonyxBackup gives you three routes: restore right from the admin panel, from the CLI, or with the self-contained MokonyxRestore restore.php wizard that runs on any bare PHP server — no Joomla required. Here's how each works and how to choose how the restore script travels with your archive.

Restore Methods

MokonyxBackup supports three ways to restore a backup:

  1. Admin Panel — Select a backup record and click Restore in the toolbar
  2. CLIphp cli/joomla.php mokonyxbackup:restore <record-id>
  3. MokonyxRestore — Standalone restore script for bare-server deployment (no Joomla required)

Admin Panel Restore

The built-in restore engine runs a six-step process:

  1. Extract archive to a temporary staging directory
  2. Preserve configuration.php so database credentials and paths survive the restore
  3. Restore files from the archive to the Joomla root
  4. Import database from the SQL dump (if present)
  5. Restore configuration.php with the preserved version
  6. Clean up the staging directory

Supports ZIP, tar.gz, and 7z archive formats. Encrypted archives are supported with a password prompt.

Choosing How the Restore Script Is Delivered

The restore script is configured per destination: each destination has its own restore-script mode setting — a dropdown with three modes (it replaced the old on/off toggle). A destination that previously had the restore script enabled is read as Outside as a sidecar.

ModeWhat you get
NoneThe archive only — no restore script is delivered. Use this when you will restore from the Joomla admin panel or CLI.
Inside the archiveA copy of the archive with the MokonyxRestore restore.php wrapped inside it. There is no separate file to keep track of — the restore script travels within the archive. (Whether Inside wrapping is fast enough on your host is what the Execution Tuning wizard checks and reports.)
Outside as a sidecarA standalone restore.php placed beside the archive as a separate file. Upload both the archive and the sidecar restore.php to the target server and open restore.php in a browser.

Inside keeps everything in one file for the tidiest transfer; Outside gives you a plain restore.php sidecar that you can drop next to the archive on any PHP host. Both deliver the same MokonyxRestore wizard described below.

Inside mode is now much faster and far less likely to time out: the archive is stored inside the wrapper without being re-compressed, so wrapping is I/O-bound rather than a second compression pass over the whole backup.

MokonyxRestore Standalone Script

When the restore script is delivered Outside as a sidecar, you upload the archive and restore.php together, for example:

restore.php       (standalone installer, the sidecar)
site-backup.zip   (the actual backup)

Upload both files to any PHP server and open restore.php in a browser. The wizard guides you through:

Step 1: Preflight Checks

  • PHP version (8.3+ required)
  • Required extensions: ZipArchive, PDO MySQL, mbstring, JSON
  • Backup file exists and is readable
  • Directory is writable
  • Free disk space (500 MB minimum)
  • PHP memory limit

Step 2: Extract

Extracts the site backup archive. Pre-reads any existing configuration.php to pre-fill database credentials. Supports encrypted archives.

Step 3: Test Database

Enter database credentials and test the connection. A successful Test Connection is required before the import can run — the Import Database button stays disabled until the connection test passes.

Step 4: Import Database

Imports database.sql with foreign key checks disabled. Reports statements executed and any errors.

Step 5: Configuration

Updates or creates configuration.php with your database credentials, paths, a fresh secret key, site name, and live site URL.

Step 6: Admin Management

Lists super administrator accounts and optionally lets you reset a password using bcrypt hashing.

Step 7: Cleanup

Removes restore.php, site-backup.zip, and database.sql artifacts from the server with a self-delete mechanism. The completion links to open the Joomla admin and view the restored site open in a new browser tab.

Security

  • MokonyxRestore includes CSRF token protection on all forms
  • Encrypted archive support (AES-256)
  • Self-contained in a single PHP file — no dependencies
  • Always delete restore.php after use