Skip to content
A Perl Script to Migrate cPanel to DirectAdmin account without pain
Perl
Branch: master
Clone or download
Daniel Gordi
Latest commit 2b88ab7 Dec 15, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit Oct 8, 2018
README.md Add Instructions for getting backup in cPanel/WHM Dec 15, 2018
da.cpanel.import.pl Initial Commit Oct 8, 2018
defaults.conf Initial Commit Oct 8, 2018

README.md

cPanel to DirectAdmin Account Migration Perl Script

This is a painless perl script to migrate accounts from cPanel to DirectAdmin. Originally It released on DirectAdmin's forum by l0rdphi1.

INSTRUCTIONS

  • Download and extract the version URL (from above) that you wish to use. (wget and tar xzf)

  • Create import and export directories for the tool to use. (mkdir import export)

  • Copy your cPanel user backups into the import directory.

  • Edit defaults.conf to match the DA server you will be restoring to. The only fields you must change are the IP and name server fields. The tool will not work if you fail to do this!

  • Execute perl da.cpanel.import.pl and follow the on-screen instructions (which will duplicate the steps here to a degree).

  • After the tool is finished converting (or as it completes each individual user), move your new DA user backups from the export directory to any DA /home/RESELLER/user_backups directory*

  • Restore the DA user backups in DA's reseller-level Manage User Backups tool.

How to Get Backup in cPanel?

You can get a backup from user(s) with GUI or pkgacct command. Command line way:

BACKUP_DIR=/root/username
mkdir -p $BACKUP_DIR
/scripts/pkgacct USERNAME $BACKUP_DIR
cd $BACKUP_DIR
ls -ls

[[ Original Link: http://forum.directadmin.com/showthread.php?t=2247 ]]

You can’t perform that action at this time.