Doc Version: 0.9.0
Last Updated: 2025-10-03
This comprehensive guide walks you through configuring and running HostFlow. Whether you're migrating websites, databases, or email accounts, this manual ensures a smooth process.
- Environment: Linux system with Bash shell.
- Tools: Install
rclone,imapsync, andcurlorsendmail. - Permissions: Access to source and target hosting servers.
- 📝 Open
hostflow.shand complete the "USER CONFIGURATION BLOCK" at the top. - ☁️ Set up
rcloneremotes usingrclone configand update remote names in the script. - 📧 Create
ACCOUNTS_FILEwith email mappings (one account per line). - 📁 Ensure
BACKUP_DIRexists and is writable. - ⚙️ All settings are configured directly in the script—no external files needed.
old_user1 old_app_password1 new_user1 new_app_password1
old_user2 old_app_password2 new_user2 new_app_password2
Each line maps a source mailbox to a destination using credentials or app passwords for secure synchronization.
-- Command: Execute with bash hostflow.sh.
- Monitoring: Watch the output and review
BACKUP_DIR/migration.logfor detailed progress.
| Option | Description |
|---|---|
IS_ROOT |
Set to true for root-level operations. |
MIGRATION_TYPE |
Choose from DA2DA, DA2CPANEL, etc., for control panel migrations. |
USE_DROPBOX, USE_GDRIVE, etc. |
Enable cloud uploads to specified services. |
ENABLE_VERIFICATION |
Toggle staging verification with VERIFY_URL. |
- The script sends a request to
VERIFY_URLand logs the response. - Confirm the endpoint is accessible to validate migration success.
- Enable email reports by setting
EMAIL_ENABLED=trueand configuring SMTP details. - Ensure
curlorsendmailis functional for delivery.
- Credentials: Verify access to source and target servers.
- Rclone: Test remotes with
rclone listremotesandrclone ls <remote>:. - IMAP: Check login credentials for
OLD_MAIL_HOSTandNEW_MAIL_HOST. - Logs: Examine
BACKUP_DIR/migration.logfor errors. - Permissions: Confirm write access to
BACKUP_DIR.
- 🔒 Keep credentials secure—never commit
ACCOUNTS_FILEto version control. - ⏰ Schedule migrations during off-peak hours using cron to minimize downtime.
Made with ❤️ by ReadyPixels LLC