Copy setting from one server to another

I have a current running server that I want to copy all the setting off to a new VM is there a way to export all settings at once

Are you using a GUI for Asterisk or are you using configuration files?