Introduction

The information in this guide is based on the following documentation:

The cpconftool Script 

 

Procedure

  1. Access your server using SSH as the root user
  2. List the available modules to help you decide which backups you need to run:
    /usr/local/cpanel/bin/cpconftool --list-modules
  3. Run the backup with the selected modules separated by a comma
    /usr/local/cpanel/bin/cpconftool --backup --modules=$module1,$module2
  4. Transfer the resulting backup to the destination server using your method of choice.
  5. Restore the backup archive, listing the same modules you used to create the backup:
    /usr/local/cpanel/bin/cpconftool --restore=/path/to/backup.tar.gz --modules=$module1,$module2

If you are unsure of which modules you need, the cpconftool script documentation has a detailed description of the available modules.