You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- If status is `Failed` the error message will give you a clue as to what went wrong. If you need more information, try using `kubectl describe` instead of `kubectl get` to get more information.
245
243
246
244
## Perform a Restore of a Backup
247
245
There are two ways to restore a backup:
248
246
-[Restore backup to the same namespace](#restore-backup-to-the-same-namespace)
249
247
-[Restore backup to a different namespace](#restore-backup-to-a-different-namespace)
250
248
251
249
### Restore backup to the same namespace
252
-
To restore your appilcation in the same namespace, create an `BackupInPlaceRestore` configuration file named `backupinplacerestore.yaml` with the following contents:
250
+
To restore your appilcation in the same namespace, create an `BackupInPlaceRestore` configuration file named `trident-restore-inplace.yaml` with the following contents:
kubectl get BackupInplaceRestore <APP BACKUP RESTORE NAME> -n <APP NAMESPACE>
285
283
```
286
284
287
285
### Restore backup to a different namespace
288
-
To restore the backup to a different namespace and optionally to a different storage class, you first need to create a restore configuration file named `trident-migrate.yaml` with the following contents:
286
+
To restore the backup to a different namespace, you first need to create a restore configuration file named `trident-restore-diff-ns.yaml` with the following contents:
289
287
290
288
```markdown
291
289
apiVersion: protect.trident.netapp.io/v1
@@ -299,9 +297,6 @@ spec:
299
297
namespaceMapping:
300
298
- source: <SOURCE NAMESPACE>
301
299
destination: <DESTINATION NAMESPACE>
302
-
storageClassMapping:
303
-
- source: <SOURCE STORAGE CLASS>
304
-
destination: <DESTINATION STORAGE CLASS>
305
300
```
306
301
307
302
Replace:
@@ -310,33 +305,45 @@ Replace:
310
305
-`<APP VAULT NAME>` with the name of the Trident Vault used when creating the backup.
311
306
-`<SOURCE NAMESPACE>` with the namespace where the application was backed up from.
312
307
-`<DESTINATION NAMESPACE>` with the namespace where you want the application to be restored to.
313
-
-`<SOURCE STORAGE CLASS>` with the name of storage class of the PVCs in the source namespace.
314
-
-`<DESTINATION STORAGE CLASS>` with the name of storage class you want to be used for the PVC(s) when the data is restored.
315
308
-`<APP ARCHIVE PATH>` with the path to the backup archive. You can get this by running the following command:
316
309
317
-
Note that with the above example, you are migrating the PVCs from one storage class to another. If you don't want to do that, you can remove the `storageClassMapping` section from the yaml file.
kubectl get backuprestore -n <DESTINATION NAMESPACE> <APP RESTORE NAME>
333
324
```
334
325
335
326
## Final Notes
336
-
This is a simple example of how to use Trident Protect to backup and restore your application.
337
-
There are a lot of other features and options available with Trident Protect that are not covered here for example:
338
-
-Creating snapshots of your application.
327
+
There are a lot of other features and options available with Trident Protect that are not covered here, for example:
328
+
- Creating zero space snapshots of your application.
329
+
-Restoring backups to a different storage class and therefore migrate the data from one storage class to another. You can refer to this [PV Migrate with Trident Protect](https://github.com/NetApp/FSx-ONTAP-samples-scripts/tree/main/EKS/FSxN-as-PVC-for-EKS) for an example of how to do that.
339
330
- Scheduling backups.
340
331
- Replicating backups to another FSxN file system with SnapMirror.
341
332
342
333
For more information please refer to the official [Trident Protect documentation](https://docs.netapp.com/us-en/trident/trident-protect/trident-protect-installation.html).
334
+
335
+
## Author Information
336
+
337
+
This repository is maintained by the contributors listed on [GitHub](https://github.com/NetApp/FSx-ONTAP-samples-scripts/graphs/contributors).
338
+
339
+
## License
340
+
341
+
Licensed under the Apache License, Version 2.0 (the "License").
342
+
343
+
You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0).
344
+
345
+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an _"AS IS"_ basis, without WARRANTIES or conditions of any kind, either express or implied.
346
+
347
+
See the License for the specific language governing permissions and limitations under the License.
0 commit comments