Stay organized with collections
Save and categorize content based on your preferences.
NAME
gdcloud disaster-recovery restores create - Create a disaster recovery restore.
SYNOPSIS
gdcloud disaster-recovery restores create [flags]
REQUIRED FLAGS
--backup string Name of the backup used for the disaster recovery restoration.
--cluster string Name of the cluster where the restore is located.
--name string Name of the disaster recovery restore.
--restore-scope restoreScope Scope of the disaster recovery restore, must of one of [drcontroller, gitlab, hwdr, controlplane, custom].
OPTIONAL FLAGS
--all-namespaces Whether to restore resources in all namespaces, the flag only works in the custom scope.
--cluster-resources stringArray A list of allowed cluster resources to be restored for the custom scope, the resources are provided by <group>/<kind> format, e.g. rbac.authorization.k8s.io/ClusterRole.
--dry-run Whether to dry run the command.
--namespaced-resources stringArray A list of allowed namespaced resources to be restored for the custom scope, the resources are provided by <group>/<kind> format, e.g. apps/Deployment.
--namespaces stringArray A list of namespaces of the resources to restore, the list only works in the custom scope.
GDCLOUD WIDE FLAGS
These flags are available to all commands: --configuration, --format, --help, --project, --quiet.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-25 UTC."],[[["\u003cp\u003eThe \u003ccode\u003egdcloud disaster-recovery restores create\u003c/code\u003e command is used to initiate a disaster recovery restore operation.\u003c/p\u003e\n"],["\u003cp\u003eA backup name, cluster name, restore name, and restore scope must be specified when creating a restore.\u003c/p\u003e\n"],["\u003cp\u003eThe scope of the restore can be chosen from \u003ccode\u003edrcontroller\u003c/code\u003e, \u003ccode\u003egitlab\u003c/code\u003e, \u003ccode\u003ehwdr\u003c/code\u003e, \u003ccode\u003econtrolplane\u003c/code\u003e, or \u003ccode\u003ecustom\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe custom scope allows for restoration of all namespaces, or a subset of specific cluster and/or namespaced resources.\u003c/p\u003e\n"],["\u003cp\u003eOptional flags allow for a dry run of the operation and the ability to control which resources and namespaces to restore when using a custom restore scope.\u003c/p\u003e\n"]]],[],null,["# gdcloud disaster-recovery restores create\n\nNAME\n----\n\ngdcloud disaster-recovery restores create - Create a disaster recovery restore.\n\nSYNOPSIS\n--------\n\n gdcloud disaster-recovery restores create [flags]\n\n### REQUIRED FLAGS\n\n --backup string Name of the backup used for the disaster recovery restoration.\n --cluster string Name of the cluster where the restore is located.\n --name string Name of the disaster recovery restore.\n --restore-scope restoreScope Scope of the disaster recovery restore, must of one of [drcontroller, gitlab, hwdr, controlplane, custom].\n\n### OPTIONAL FLAGS\n\n --all-namespaces Whether to restore resources in all namespaces, the flag only works in the custom scope.\n --cluster-resources stringArray A list of allowed cluster resources to be restored for the custom scope, the resources are provided by \u003cgroup\u003e/\u003ckind\u003e format, e.g. rbac.authorization.k8s.io/ClusterRole.\n --dry-run Whether to dry run the command.\n --namespaced-resources stringArray A list of allowed namespaced resources to be restored for the custom scope, the resources are provided by \u003cgroup\u003e/\u003ckind\u003e format, e.g. apps/Deployment.\n --namespaces stringArray A list of namespaces of the resources to restore, the list only works in the custom scope.\n\n### GDCLOUD WIDE FLAGS\n\nThese flags are available to all commands: `--configuration`, `--format`, `--help`, `--project`, `--quiet`.\n\nFor more information, see the [gdcloud CLI reference overview](/distributed-cloud/hosted/docs/latest/gdch/resources/gdcloud-reference/gdcloud) page."]]