Back Up and Restore Paragon Automation
This topic describes the backup and restore functionality available for Paragon Automation.
You can use the backup and restore functionality available in Paragon Shell to back up and restore your Paragon Automation cluster and application configuration data.
Back Up Using Paragon Shell
You can back up your current Paragon Automation network configuration using Paragon Shell CLI. When you run the backup command, all the application configuration information stored in PostgreSQL, ArangoDB, and Airflow configuration database systems, LLM connector secrets keys, and available software images are backed up. The backup command also backs up telemetry information stored in OpenSearch, TimescaleDB, and VictoriaMetrics database systems. The backup procedure can be performed while the microservices and applications are running and does not affect the operation of the network. However, we recommend that you do not perform a backup during configuration changes such as device onboarding.
To back up your Paragon Automation configuration state.
Upon completion of the backup process, the backup folder is stored in the local persistent /export/paragon-shell/backup folder on the node. You'll have to exit out of Paragon Shell to the Linux root shell to navigate to the folder where the backups are saved.
Each backup folder contains the following folders with backup-related information.
-
airflow—Backup of airflow secrets and DAGs
-
arango—Backup of ArangoDB database
-
ask_paragon—Configured LLM connector secrets (in encrypted format)
-
postgres—Backup of PostgresDB database
-
software_images—Backup of available devices images
-
system_config—Backup of system configuration; this is for reference only
Telemetry data backups are stored in the nodes where the database pods are running.
Caveats of the backup process
-
Application configurations (such as devices, sites, service orders, and so on) are backed up, but certificates and infrastructure services configurations are not backed up. This information must be kept unchanged before you perform a restore.
-
The backup process captures the current infrastructure configurations, but information is used for reference only. The same configuration can be used to instantiate a new setup.
For example, if monitoring was enabled on the cluster before performing a backup. The configuration related to monitoring is stored in the /export/paragon-shell/backup/backupID/system_config/config.cmgd file. Post-restore, use the information in the monitoring section of the config.cmgd file to reconfigure the monitoring commands on the new setup.
-
Telemetry backups are not version controlled, that is, only the latest copy of a backup is available at any given point of time. A new backup command will overwrite the existing telemetry backup with the delta of the data from the last backup.
To maintain multiple and periodic copies of telemetry data, you can upload the telemetry backup to a remote location. To upload a backup to a remote location, use the following command.
request paragon backup upload backup-id backupID storage-location remote-path user username password password
You can re-upload the data to the same remote location folder every time you choose to back up telemetry data to maintain incremental copies.
Restore Using Paragon Shell
To restore your Paragon Automation configuration from a specific backup configuration folder.
Caveats of the restore process
-
When you perform the restore operation, the network configuration is returned to the configuration present in the backup folder. From the time the backup was taken, if the network configuration has changed due to new devices being onboarded or new service orders being executed, the network configuration in Paragon Automation might be different from the actual network state. To ensure that the network configuration in Paragon Automation and the actual network state have minimal mismatch post a restore operation, we recommend that you take regular periodic backups or specific backups after every network intent change.
-
You cannot restore data from a release different from the current installed release of Paragon Automation.
-
Since a backup does not store the certificates and infrastructure services configurations, that information must be kept unchanged during restoration.
-
Resources allocated to the network won’t be preserved after a restore and you must ensure that you release the allocated resources during the window between taking a backup and performing a restore.
-
Performing a restore operation requires a maintenance window. You must expect that all functionality, including access to the GUI, is unavailable during this time frame.
View or Delete Backup Files
To view a list of all backup folders across all nodes, use the following command:
root@Primary1> show
paragon backup
The node connects to all the other nodes in the Paragon Automation cluster using SSH and displays a list of all backup folder names along with the IP address of the node on which the folder is located.
To view a list of backup folders along with a list of failed backup attempts, use the following command:
root@Primary1> show paragon backup include-failure
true
To list the available backups from a remote location use the following command.
root@Primary1> show paragon backup remote
storage-location remote-path user username
password password
Use this command to determine the backup that you want to download from the remote location. You can view the backup directories only in the folder that you have specified in the path and not all the backups available in other folders on the remote server. You cannot delete a backup in a remote location since you don't have the necessary permissions to manage the remote server.
To delete a backup folder, use the following command.
root@Primary1> request paragon backup
delete backup-id
backupID
You can delete a backup folder that is located only on the node on which you execute the command.
Upload or Download Backup Files
root@Primary1>request
paragon backup upload backup-id
backupID
storage-location
scp://IP:port/remote-path user
username password
password
To view progress of the backup folder upload command, use the following command:
root@Primary1> show
paragon backup upload status backup-id
backupID
root@Primary1>request paragon backup download backup-id
backupID
storage-location
scp://IP:port/remote-path user
username password
password
To view progress of the backup folder download command, use the following command:
root@Primary1>
show paragon backup upload status backup-id
backupID