Nota Acap
  • Introduction
  • Linux Guide
    • Fresh Installed Centos 7
    • Changing Network Interfaces in Centos 7
    • Lockdown SSH
    • Recursively change permission Linux
    • Proxy Server IPtables
    • Provisioning Web Server with Custombuild
    • MySQL Basic Management
    • Increasing Existing LVM Disk
  • Windows Guide
  • Application Guide
    • WEB Port IPtables Rate Limit
    • Simple Email Piping Script
    • HTTP Dead
    • Email Relay Outgoing
    • Compiling Extra PHP version (Directadmin)
    • Finding the SPAM (cPanel)
    • HTTP Basic Virtual Host
    • Update Kernel for DRBD Hosts
  • Migration Related
    • Cpanel -> Cpanel (Bulk)
    • IMAPSYNC Basic Scripts
    • Directadmin -> cPanel (Copy/Sync Emails)
    • Basic Rsync Script
Powered by GitBook
On this page

Was this helpful?

  1. Migration Related

Cpanel -> Cpanel (Bulk)

Quick guide on the steps to migrate cPanel accounts in bulk to another cPanel server

  • Add the list of domains that need to be migrated in list-domains.txt

  • Get the username for all domains and save it in list-users.txt

for i in `cat list-domains.txt`; do cat /etc/userdomains | grep$ $i | awk {'print $2'}; done
  • Now start generating a tar ball

cat list-users.txt | xargs -i /scripts/pkgacct {}
  • Or we can skip the home directory and rsync it later as we just backup the config file and databases

cat list-users.txt | xargs -i /scripts/pkgacct --skiphomedir {}
  • Get all the tar balls that been transferred from old server to a new server

ls -al | grep '.tar.gz' >> list-tarball.txt
  • Start the restoration

cat list-tarball.txt | xargs -i /scripts/restorepkg {}
PreviousUpdate Kernel for DRBD HostsNextIMAPSYNC Basic Scripts

Last updated 6 years ago

Was this helpful?