David - Musings of an SRE

Migrating User from Cpanel to Directadmin

These are my notes on how I migrated a user account from Cpanel to Directadmin (Reseller/Admin)

Prerequisite

  1. Access to your Cpanel
  2. Access to your DirectAdmin panel as an Admin/Reseller

Backup your Cpanel

  1. In Cpanel, search for “Backup” and perform a Full Backup.
  2. Unfortunately there are many different skins for Cpanel so this is a very generic instruction.
  3. You are looking for a backup that will backup your home directory, databases and all your content.
  4. Perform a Full Backup to your Home Directory
    1. https://docs.cpanel.net/cpanel/files/backup-for-cpanel/#:~:text=database%20lock%20file.-,Generate%20a%20Full%20Backup,file%20on%20a%20remote%20server.
  5. Once the backup is completed, you should see the .tar.gz in your File Manager
  6. Download it in preparation to upload to your Directadmin Server

Restore on your Directadmin

  1. Copy the backup file onto your Directadmin server.
  2. You can upload it via Directadmin’s File Manager or via scp if you have shell access. Ensure it is a path that is in your $HOME_DIR
  3. Rename the backup file to cpmove-<username>.tar.gz
    1. This step is important as the filename contains instructions to DA during the restoration
  4. We can now start the backup process
  5. Go to Admin tools > Admin Backup/Transfer > Restore from the Directadmin panel menu
  6. Under Path, set it to the directory where you’ve uploaded the backup file and click Next
  7. You may be asked to select an IP to assign to this account. If your server only have a single IP, you can just proceed and click Next
  8. You should now see your backup file being able to be selected. Select it and click on Restore

Completion

  1. Let the backup process complete, you should receive a notification by Directadmin via email or your Inbox when its completed.
  2. You should now be able to see the username appear under your Users list.