Hey there! There are two ways you can do this on a cPanel machine:
Option 1 - Using the Transfer Tool in WHM. Once you have connected from your Destination machine to the Source machine, the Transfer Tool will give you a list of configuration options from the Source server that can be moved over. Here is a screenshot showing this:
Option 2 - The cpconftool script. This is a script you can manually run that will backup the local server settings so you can move them to another machine. More details on that can be found here: