What device (make and model) are you talking about here?You'll probably need to create a backup template and include, for example, on HPE's 'include-credentials' or on Cisco kit "more system:running-config".