Back Up Configuration and Device State from the CLI

Back Up Configuration and Device State from the CLI

67222
Created On 09/25/18 17:46 PM - Last Modified 02/01/21 23:42 PM


Symptom
The article explains the CLI commands used for configuration and device state backup.

Environment
  • Palo Alto Firewall or Panorama.
  • Any PAN-OS.


Resolution

It is possible to export/import a configuration file or a device state using the commands listed below. One can also create a backup config.

Commands to save the configuration backup:

admin@FW>configure
Entering configuration mode

admin@FW# save config to MyBackup.xml
Config saved to MyBackup.xml
 

TFTP Export of configuration:

admin@PA-220> tftp export configuration from MyBackup.xml to <tftphost>

SCP Export of configuration:
admin@PA-220> scp export configuration from MyBackup.xml to user@<scphost>:/path

TFTP Import of configuration:
admin@PA-220> tftp import configuration from <tftphost> file <remotepath>

SCP Import of configuration:
admin@PA-220> scp import configuration from user@<scphost:/path
 

TFTP Export of Device State:

admin@PA-220> tftp export device-state to <tftphost>

SCP Export of Device State:
admin@PA-220> scp export device-state to username@<scphost>:/path

TFTP Import of Device State:
admin@PA-220> tftp import device-state from <tftphost> file <remotepath>

SCP Import of Device State:
admin@PA-220> scp import device-state from username@<scphost:>path
 





 

 

 



Additional Information
CLI Commands to Export/Import Configuration and Log Files

Attachments
Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000ClJ9CAK&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Attachments
Choose Language