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

When to use Site Transfer

A normal restore puts a backup back where it came from. Site Transfer is for the other case: running the backup somewhere new - a staging server, a new domain, a different database, or a fresh host. It handles the two things that break a plain restore at a new location: the stored site URL scattered through the database, and the database credentials in the site configuration file.

Open it from the MokonyxBackup admin menu: Site Transfer. The flow runs in the browser over AJAX - there is no CLI command for the wizard itself. The package it builds contains a standalone restore script that can be driven from the shell on the target (see Bare-Metal / Kickstart Restore).

Step 1: Choose the source backup

The Source panel lists completed backups (status complete or warning) whose archive files are still on disk, newest first. Split / multipart backups are listed too, flagged with their part count - the wizard carries every part plus its manifest as one unit.

Step 2: Enter the target

FieldWhat it is
Target Site URLThe URL the site will live at. Required - this is what the stored source URL is rewritten to.
Database HostThe target database host (often localhost).
Database NameThe target database. It must already exist - the transfer imports into it and does not create it.
Database UserThe database user for the target.
Table PrefixThe table prefix to write into the target configuration.
Database PasswordUsed only to drive the restore on the target. It is never written into the package or the settings file - you supply it on the target.

Step 3: Preview (dry run)

Click Preview for a dry run that writes nothing. It reports the URL rewrite that would run (how many tables would be scanned and rows changed switching the source URL to your target URL) and the configuration the target will receive - host, database, user, prefix, live site URL, and site name, with the password omitted.

The rewrite is serialized-data-safe: PHP-serialized arrays are decoded, replaced, and re-serialized (byte-length prefixes stay correct), serialized data carrying objects is left untouched, and slash-escaped URLs inside JSON are handled too.

Step 4: Build the migration package

Click Build migration package to assemble a ready-to-upload set beside the backup. It is a list of files, not a re-zipped bundle:

  • The backup archive - or, for a split backup, every part plus its manifest.
  • A freshly generated kickstart restore script (the standalone bare-metal restorer, carrying this profile's restore-time exclusions).
  • A prefilled settings file with the target settings minus the database password.

Upload every listed file to the empty target document root, then run the restore script there - it extracts, imports into the target database, writes the site configuration, and rewrites the URLs to the new host. The destination directory is protected with a deny-all web-server rule and an index file before the kickstart script is written into it.

Step 5: Push to a remote destination (optional)

If the source profile has an enabled remote destination (SFTP, FTP, and so on - local destinations are excluded), a destination selector and a Push to remote button appear. Push uploads the whole migration set server-to-server. The destination's path must be the target site's document root, so the uploaded restore script lands beside the archive and is reachable at the target URL.

Push can also finish the job end-to-end. With an HTTPS target URL and the target database password, the wizard primes a one-time, one-hour auth token (only its hash is uploaded) and drives the kickstart over HTTPS: extract, import into the pre-existing target database, write config and rewrite URLs, an advisory boot check, then self-cleanup. If the target is not HTTPS, the password is not transmitted and auto-run is skipped - the files are still uploaded and primed, and you finish with one token-authorised click on the target.

Notes and current limits

  • The target database must already exist; the transfer imports into it rather than creating it.
  • The database password is never persisted to disk, to the package, or to the settings file.
  • Access is gated: the migration endpoints require the admin session token and the backup-restore permission, and server paths are never exposed to the browser.
  • A multi-step stepper UI and a one-click "push and trigger remotely" are planned follow-ups. Today, unless you push with an HTTPS target URL plus password, you run the kickstart restore script on the target yourself.

For how the kickstart restore script behaves on the target, including the headless CLI mode and boot verification, see the Bare-Metal / Kickstart Restore guide.