Migration Tool
nauhyuh/flarum-migration-tool
Complete migration tool with admin UI for easy Flarum server transfer. Backup, restore, and migrate your forum with just a few clicks.
- Downloads
- 0
- Version control
- github.com/nauhyuh/flarum-migration-tool
Flarum Migration Tool 🚀
A professional, safety-first migration and backup extension for Flarum. Transfer your forum between servers or create full-system backups with ease, all through a beautiful real-time Admin UI.
✨ Key Features
- 1-Click Full Backup: Zip your entire Flarum site, including database, settings, and files.
- Safety-First Migration: Existing server files are renamed with an
_oldsuffix during migration. Data is never lost until you verify and click "Cleanup". - Real-time Progress Bar: Track every step of your backup or migration with detailed status labels and percentage updates.
- Smart Pre-filling: Automatically detects your current server's URL and database credentials to save time during migrations.
- Flexible Options:
- Include/Exclude
vendordirectory. - Include/Exclude user uploads (avatars, attachments).
- Include/Exclude
config.php(sensitive credentials) in backups.
- Include/Exclude
- Robust DB Engine: Pure PHP database export/import engine designed for maximum compatibility across different hosting environments.
- Post-Migration Cleanup: Dedicated tool to permanently remove old files once you've confirmed your new site is working perfectly.
- Command Line Support: Advanced users can still perform migrations via
php flarum migration:migrate.
🛠 Installation
Install the extension via Composer:
composer require nauhyuh/flarum-migration-tool
After installation, enable the extension in your Flarum Admin dashboard.
🚀 How to Migrate
Step 1: Create a Backup on Source Server
- Go to Admin > Migration Tool > Backup tab.
- Select your desired options (Exclude
vendorfor smaller files). - Click Create Backup. Watch the real-time progress bar.
- Once finished, click Download to save the ZIP to your computer.
Step 2: Restore on Destination Server
- Install this extension on your new Flarum site.
- Go to Admin > Migration Tool > Migrate tab.
- Upload your ZIP backup file.
- The tool will auto-fill your current server's DB details. Update if you are migrating to a different database.
- Click Start Migration. The tool will:
- Backup existing files to
*_old. - Replace the database.
- Restore your files.
- Backup existing files to
- Check your site. If everything is perfect, click Cleanup Old Files to delete the
_olditems.
📋 Requirements
- Flarum v1.0+
- PHP
zipextension enabled. - Write permissions for
storageand root directories. - MySQL/MariaDB database.
🛡 Security & Safety
- No Data Deletion: Migrations use high-level safety renaming. Your old files are kept safe as
_olduntil you choose to delete them. - Cleanup Tool: Ensures no sensitive
_oldfiles (likeconfig.php_old) are left on your server publicly. - Admin Only: All migration routes are strictly protected by Flarum's admin authorization.
📄 License
This project is licensed under the MIT License.
Crafted with ❤️ by Nauhyuh
Versions
-
Version 2.4.1.
Likely works with Flarum v1.8.12.
-
13 additional versions.
-
Extension created.