Back Up and Restore Paragon Automation
This topic describes the backup and restore functionality available for Paragon Automation.
We support only the snapshot feature available on VMware clients to back up and restore your cluster. We recommend that you use only the snapshot feature available on VMware clients to back up and restore your cluster.
Back Up and Restore Using VMware Snapshots
You can use the snapshot functionality available on VMware vSphere and ESXi clients to back up and restore your Paragon Automation cluster and application configuration data. The backup procedure can be performed while the microservices and applications are running and does not affect the operation of the network. The snapshot creates a copy of your cluster and application configuration information. The snapshot restore functionality enables you to restore your cluster on the same set of VMs from which the backup was taken. The VMs are suspended before performing a restore operation and the downtime associated with a restore operation is minimal.
Back Up Using VMware Snapshots
-
On VMware vSphere client
Log in to any of the cluster nodes.
Use the
request paragon health-check
Paragon Shell command to ensure that your cluster is in good health. The status of the cluster must beGREEN
.Log in to the VMware vSphere client which manages the Paragon Automation VMs.
Click on your cluster host in the VM inventory.
Your cluster node VMs are listed in the Virtual Machines tab under VMs.
Select all the VMs, right-click, and click Take snapshot. The snapshot creation dialog box appears.
Enter a name for the snapshot and a description. Also, select the Include virtual machine's memory check-box.
Click Create to create the snapshot. The snapshot creation takes a few minutes.
You can check the progress of the job under Recent Tasks or in the Task Console.
-
On VMware ESXi client
Log in to any of the cluster nodes.
Use the
request paragon health-check
Paragon Shell command to ensure that your cluster is in good health. The status of the cluster must beGREEN
.Log in to the VMware ESXi server on which your Paragon Automation VMs are located.
Select a cluster node VM listed under Virtual Machines, right-click and click Take snapshot. The snapshot creation dialog box appears.
Enter a name for the snapshot and a description. Also, select the Include virtual machine's memory check-box.
Click Create to create the snapshot.
Repeat steps 4 through 6 for the other three VMs and enter appropriate snapshot names when prompted.
Note:We recommend that you create snapshots of all the VMs one after the other as close as possible to each other in time.
(Optional) You can check the progress of the snapshot jobs under Recent Tasks or in the Task Console.
- Using APIs
You can also use the
snapshot.create
option to take snapshots of VMs using APIs. For more information, see https://github.com/vmware/govmomi/blob/main/govc/USAGE.md#snapshotcreate.
Restore Using VMware Snapshots
-
On VMware vSphere client
Log in to the VMware vSphere client which manages the Paragon Automation VMs and where the snapshots were previously taken.
Click your cluster host in the VM inventory.
Your cluster VMs are listed in the Virtual Machines tab under VMs.
Select all the VMs, right-click, and click Suspend to suspend the operation of the VMs. Do not restore the VMs when they are powered on.
Select a cluster node VM, right-click, and click Manage snapshots. The Manage snapshots page appears with a list of available snapshots.
Select the snapshot that you want to restore and click Restore snapshot.
Ensure that you select a snapshot that is recent and stable.
Repeat steps 4 through 5 for the other three VMs.
Alternatively, you can select a VM, right-click and click Revert to Latest Snapshot if your immediate last snapshot was the most stable version.
Note:We recommend that you restore snapshots of all the VMs one after the other as close as possible to each other in time. Do not wait for the snapshot restoration of any one VM to complete before restoring the other.
(Optional) You can check the progress of the job under Recent Tasks or in the Task Console.
- Once the restore process is complete, wait for a few minutes for the VMs to power-on and the cluster to stabilize.
- Log in to any of the cluster nodes.
Type the
show paragon cluster nodes
command in Paragon Shell. Ensure that the status of all the nodes isReady
.Type the
show paragon cluster pods
command and ensure that the status of all the pods is eitherRunning
orCompleted
.Type the
request paragon health-check
command to ensure that your cluster is in good health. The status of the cluster must beGREEN
.
-
On VMware ESXi client
Log in to the VMware ESXi server on which your Paragon Automation VMs are located.
Select you cluster node VM listed under Virtual Machines, right-click and click Suspend to suspend the operation of the VM. Do not restore a VM when it is powered on.
Right-click the selected VM and click Manage snapshots. The Manage snapshots page appears with a list of available snapshots.
Select the snapshot that you want to restore and click Restore snapshot.
Ensure that you select a snapshot that is recent and stable.
Repeat steps 2 through 4 for the other three VMs.
Alternatively, you can select a VM, right-click and click Revert to Latest Snapshot if your immediate last snapshot was the most stable version.
Note:We recommend that you restore snapshots of all the VMs one after the other as close as possible to each other in time. Do not wait for the snapshot restoration of any one VM to complete before restoring the other.
(Optional) You can check the progress of the restore jobs under Recent Tasks or in the Task Console.
- Once the restore process is complete, wait for a few minutes for the VMs to power-on and the cluster to stabilize.
- Log in to any of the cluster nodes.
Type the
show paragon cluster nodes
command in Paragon Shell. Ensure that the status of all the nodes isReady
.Type the
show paragon cluster pods
command and ensure that the status of all the pods is eitherRunning
orCompleted
.Type the
request paragon health-check
command to ensure that your cluster is in good health. The status of the cluster must beGREEN
.
- Using APIs
You can also use the
snapshot.revert
option to restore backed-up snapshots of VMs using APIs. For more information, see https://github.com/vmware/govmomi/blob/main/govc/USAGE.md#snapshotrevert.
Disaster Recovery
Back Up and Restore Using Paragon Shell
You can also use the backup and restore functionality available in Paragon Shell to back up and restore your Paragon Automation cluster and application configuration data.
The backup and restore functionality available in Paragon Shell is inconsistent and might not work as intended. We recommend that you use the snapshot feature available on VMware clients to back up and restore your cluster. See Back Up and Restore Using VMware Snapshots.
- Back Up Using Paragon Shell
- Restore Using Paragon Shell
- View or Delete Backup Files
- Upload or Download Backup Files
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 are backed up. The backup command also backs up telemetry information stored in TimescaleDB, OpenSearch, 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.
To back up your Paragon Automation configuration state.
Upon completion, a backup file with a filename in the yyyymmdd-hhmmss format is created. The backup file 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 backup folder.
Caveat 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.
-
Backup process will capture current infrastructure configurations, but information is used for reference only. The same configuration can be used to instantiate a new setup.
Restore Using Paragon Shell
To restore your Paragon Automation configuration from a specific backup configuration file.
You must perform the restore operation only on the node on which the required backup file is located.
Caveats of the restore process
-
When you perform the restore operation, the network configuration is returned to the configuration present in the backup file. 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.
-
You can restore data on the same setup on which a backup was taken and not on a fresh installation using the procedure described in this section. To restore backed up data on a fresh installation, use the procedure described in Disaster Recovery.
-
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.
View or Delete Backup Files
To view a list of all backup files 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 file names along with the IP address of the node on which the file is located.
To view a list of backup files along with a list of failed backup attempts, use the following command:
root@Primary1> show paragon backup
include-failure
true
To delete a backup file, use the following command.
root@Primary1> request paragon backup delete
backup-id backup-ID
You can delete a backup file 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 backup-ID storage-location
scp://IP:port/remote-path user
username password
password
To view progress of the backup file upload command, use the following command:
root@Primary1> show paragon backup upload status
backup-id backup-ID
root@Primary1>request paragon
backup download backup-id backup-ID storage-location
scp://IP:port/remote-path user
username password
password
To view progress of the backup file download command, use the following command:
root@Primary1> show paragon backup upload
status backup-id backup-ID