Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore Documentation [issue-1715] #1957

Merged
merged 1 commit into from
Nov 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelogs/unreleased/1957-nainav
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Restore Documentation: Updated Restore Documentation with Clarification implications of removing restore object.
25 changes: 24 additions & 1 deletion site/docs/master/restore-reference.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Restore Reference
# Restore Reference

## Restoring Into a Different Namespace

Expand All @@ -9,6 +9,29 @@ velero restore create RESTORE_NAME \
--from-backup BACKUP_NAME \
--namespace-mappings old-ns-1:new-ns-1,old-ns-2:new-ns-2
```
## What happens when user removes restore objects
A **restore** object represents the restore operation. There are two types of deletion for restore objects:
### 1. Deleting with **`velero restore delete`**
This command will delete the custom resource representing it, along with its individual log and results files. But, it will not delete any objects that were created by it from your cluster.
### 2. Deleting with **`kubectl -n velero delete restore`**
This command will delete the custom resource representing the restore, but will not delete log/results files from object storage, or any objects that were created during the restore in your cluster.

## Restore command-line options
nainav marked this conversation as resolved.
Show resolved Hide resolved
To see all commands for restores, run : `velero restore --help`
To see all options associated with a specific command, provide the --help flag to that command. For example, **`velero restore create --help`** shows all options associated with the **create** command.

### To List all options of restore use : **`velero restore --help`**

```Usage:
velero restore [command]

Available Commands:
create Create a restore
delete Delete restores
describe Describe restores
get Get restores
logs Get restore logs
```

## Changing PV/PVC Storage Classes

Expand Down