Unarchiver
A powerful, single-file PHP script designed for unpacking backups. Companion script for the Archiver.
Archive Restorer (Migration Tool)
A powerful, single-file PHP script designed to automate the migration and restoration of WordPress websites (and other PHP applications). Originally optimized for Cloud86 hosting, but compatible with most Linux/Apache/Nginx environments running cPanel, Plesk, or DirectAdmin.
๐ Features
This tool handles the entire migration workflow in a step-by-step wizard interface:
- ๐ฆ Smart Extraction: Automatically detects and extracts
.zip,.tar,.tar.gz, and multi-part archives (e.g.,.part1.zip,.z01). - ๐ฅ Remote Import: Pull backups directly from another server using a URL (supports
wgetandcurl), avoiding the need to download/upload to your local machine first. - ๐ Structure Fixer: Detects if files were extracted into a nested subfolder (like
httpdocsorpublic_html) and moves them to the root automatically. - ๐๏ธ Database Import:
- Scans for
.sqlor.sql.gzfiles. - Accepts database credentials via UI.
- Imports directly using the system
mysqlcommand for speed. - Plesk Helper: Includes a JS snippet to auto-fill database credentials in the Plesk interface.
- Scans for
- โ๏ธ Config Automator: Automatically updates
wp-config.phpwith the new database credentials. - ๐ Path Fixer: Scans
.htaccess,.user.ini, andwp-config.phpto replace old absolute paths with the current server path. - ๐งน Cleanup: One-click removal of the script and all archive files after migration is complete.
๐ Prerequisites
To run this script, your hosting environment needs:
- PHP 7.4 or higher.
shell_execandexecenabled (Required forunzip,tar, andmysqlcommands).- Write permissions on the directory where the script is uploaded.
- Standard system tools installed:
unzip,tar,mysql,wget(optional),curl(optional).
๐ ๏ธ Installation & Usage
1. Upload the Script
Upload the restore.php (or whatever you name this script) to the root directory of your website (e.g., /public_html/ or /httpdocs/).
2. Upload Archives (Two Options)
- Option A (FTP): Upload your backup zip/tar files to the same folder via FTP/SFTP.
- Option B (Remote): Open the script in your browser and use the "Remote Import" feature to pull files from a direct URL.
3. Run the Wizard
Navigate to the script in your browser: