Cluster scoped
Last updated
Last updated
Regardless of from where the Restore operation is initiated, the workflow for the operation is the same, ensuring consistency and simplicity.
For the restore workflow, there are four tabs presented to the user Basic Tab Resource Selector #transforms Namespace Configuration
This tab cover general restore properties for the backups and snapshots such as name, secrets (if encrypted) and Restore flags. Instead of Namespace selection, there is separate "Namespace configuration section"
Name - Enter the meaningful name of Restore in this field.
Encryption Secret - Select the same secret which is selected in Backup plan from which Backup or Snapshot is created. You can create a new Secret from dropdown option "+ New Encryption Secret".
Restore Flags - As part of every restore, users can select different restore flags to define how the restore should happen.
The following flags are provided:
SkipIfAlreadyExists - Specifies whether to skip restoring resources if they are already found in the namespace in which the backup is being restored. This is only applicable for metadata resources and not data resources (PV/PVC).
PatchIfAlreadyExists - Specifies whether to patch the spec section of an already existing resource found in the namespace at the time of restore.
OmitMetadata - Specifies whether to omit metadata labels, annotations of resources while restoring them.
PatchCRD - Specifies whether to patch spec of an already existing CRD
SkipOperatorResources - Specifies whether to omit operator resources at the time of restore (for the use case when an Operator is already present, but the application of that operator needs to be restored)
CleanupOnFailure - Specifies whether to perform cleanup of resources created along with reverting updated resources in case the restore operation fails.
ProtectRestoredApp - Specifies whether to create a backupplan at the destination namespace/cluster to protect the application after it has been restored. With this flag, users can ensure that their application is protected no matter which cluster it runs on.
DisableIgnoreResources - Specifies the behaviour of the default list of resources being ignored at the time of restore. If set to true, those resources will not be ignored.
OnlyData - Restores only the data volume components from a backup.
UseOCPNamespaceUIDRange - Openshift specific flag to restore the data with the ocp namespace UID range.
RestoreStorageClass - This flag specifies whether the storage class should be restored on site instance or not..
ResourcesReadyWaitSeconds - This holds the wait time in seconds for which, TVK application will wait for user application's resources to come up in the restore process.
ImageRestore - Restores the container images from the backup.
Next button - Click on Next if user wants to setup advance configuration in Restore.
Create button - Click on this button to directly create Restore without any advance configuration like Resource selector, transformation and hooks.
This is to configure the include/ exclude resources at global level.
Exclude resources - Restore will done without selected resources in this field. This Restore all other resources available in Backup or Snapshot. This also have Label set selector and Resources selector same as Include Resources.
This is to configure the Transform component at global level.
From a resource transform perspective, Trilio provides the ability to transform Helm Charts and transform custom resources. Helm charts can be transformed based on Key:Value pairs whereas custom resources can be transformed by specifying GVKO and Operation (Replace, Move etc.) type.
For both Helm and Custom Transforms - Trilio fetches the metadata and populates it via dropdown menus and tables - to make it easy for the user to manage the granular details of the transforms. User can add custom transformation if Backup or Snapshots are of type operatorTransforms, custom, virtual machine like below.
User can add helm transformation if Backup or Snapshots are of type helm type and if Backup or Snapshot is a Namespace scope, then retainHelmApp flag should enable in the Backup plan.
This is to configure the Namespace in which user wants to take Restore of a Backup or a Snapshot. In this tab user can configure the restored namespace, include/ exclude resources from that namespace, transformation and hook configuration.
Click on Add Configuration to configure more for the namespace.
Basic Tab -
Namespace - Select the Namespace in which user wants to take Restore of a child Backup or a Snapshot from selected namespace. You can create a new Namespace from dropdown option "+ New Namespace"
Encryption Secret - Select the same secret which is selected in Backup plan from which Backup or Snapshot is created. You can create a new Secret from dropdown option "+ New Encryption Secret".
Namespace name - this shows the name of Namespace for which configuration is In-progress.
Restore Flags - As part of every restore, users can select different restore flags to define how the restore should happen. Refer Basic Tab
Back - This is to redirect back to Namespace selection page from configuration section.
Next - This is to redirect to next page of configuration.
Add - Click on this if user wants to add the namespace configuration.
Resource selector - This is to configure the include/ exclude resources in the selected Namespace at namespace level. refer Resource Selector
Transform Components - This is to configure the transformation in selected namespace at namespace level. refer Transform Components
Hook confirmation - This is to configure the hooks in selected namespace. refer #hooks-configuration
When redirects from Basic tab and if Target browsing of Backup or Snapshot namespace is disable, user see a toggle to enable the target browsing. click on that toggle to enable the target browsing to set up a resource selector.
Include resources - Restore will done with only selected resources in this field. This wont Restore all other resources available in Backup or Snapshot. 1. Labels set - This tab is used to select the Labels to include In the Restore. 2. Resources - This tab is used to select the Resources to include In the Restore.