Restore cPanel Backup to DirectAdmin Server

Some random notes on cP to DA restore

  • cPanel user account must be owned by root when you create the backup on the cPanel server.
  • When using the “Personal” version of DA, the admin user must be changed to match the user of the cPanel account you are trying to restore, as this version only allows a single account.
  • On the DA server, change the default “admin” username to the USERNAME of the backup.

cd /usr/local/directadmin/scripts
./change_username.sh admin USERNAME 

Edit /usr/local/directadmin/data/users/USERNAME/user.conf

Change creator, name and username to the backups USERNAME

Restore the cPanel backup per – https://forum.directadmin.com/threads/how-to-cpanel-to-da-migration.58059/

This will fail (and its OK)!

What this did was take your cPanel backup and create a DA backup file with the cPanel information.

Now, rename the DA created backup to user.USERNAME.USERNAME.tar.gz

Restore this newly named backup using the same process.