20i Migration to Enhance Panel
This guide provides a step-by-step process to migrate backups from 20i hosting to an Enhance Panel. The 20i Backup Manager tool allows you to schedule, download, and transfer backups seamlessly to an FTP server on your Enhance panel.
https://github.com/bytegrit/20iMigrationtoEnhance
Steps to Migrate Backups:
Upload the 20i Backup Manager to a Hosting Environment
For effective migration, upload the 20iBackupManager folder and files to any PHP-compatible hosting environment. Running the script from a hosting environment helps avoid 20i's restrictions and allows smooth access to their API for backup tasks.
Note: SSH access is essential to execute PHP scripts if you plan to run the tool from a command line interface.
Create an API Token for 20i
Log in to your 20i admin panel and create a new API token with the necessary permissions. This token allows the tool to interact with 20i's API, enabling it to fetch, schedule, and manage backups for the hosted sites.
Add this token to the BEARER_TOKEN constant in the tool configuration.
Fetch All Hosting IDs from 20i
Use the 20i API to list all hosting accounts associated with your account.
This step gathers all site IDs necessary to manage backups, as each site’s ID is required to initiate or retrieve backups individually.
Update Site IDs in site.txt
Once you have gathered the hosting IDs, open the site.txt file in the 20iBackupManager folder and add each hosting ID on a new line.
This list ensures that only the specified sites are backed up, transferred, and processed by the tool.
Configure FTP Account on Enhance Panel for Backup Transfer
Set up an FTP account on the Enhance panel where the backups will be transferred.
Add the FTP credentials (host, username, password) to the ftpHost, ftpUser, and ftpPass properties in the tool configuration.
The backup manager will automatically upload each backup file to this FTP server upon successful download.
Important Note: Avoid storing large backup files on 20i’s servers, as they may suspend or remove them if they exceed storage policies. Transfer backups promptly to your Enhance FTP server to prevent issues.
Additional Requirement: Make sure you have SSH access to execute PHP scripts, especially if you’re using this tool for automated or scheduled tasks on a remote server.
Upcoming Features
Enhanced Migration: The tool will soon support automatic creation of websites on the Enhance panel, migrating relevant folders with permissions intact. It will also extract and migrate associated databases, streamlining the entire migration process.
By following these steps, you’ll ensure a smooth migration of your 20i-hosted site backups to the Enhance Panel for more efficient management and enhanced control.