1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-18 06:47:12 +00:00

gcloud: Thu Feb 22 10:25:44 UTC 2024

This commit is contained in:
Automated 2024-02-22 10:25:44 +00:00
parent 5bf6fb3fc0
commit 8778dcbd7e
245 changed files with 9946 additions and 513 deletions

View file

@ -15,21 +15,29 @@ DESCRIPTION
$ gcloud alpha storage restore url...
EXAMPLES
Restore specific version of object in a bucket. Note: Generation number is
required.
Restore latest soft-deleted version of object in a bucket.
$ gcloud alpha storage restore gs://bucket/file1.txt
Restore a specific soft-deleted version of object in a bucket by specifying
the generation.
$ gcloud alpha storage restore gs://bucket/file1.txt#123
Restore two objects in a bucket:
Restore all soft-deleted versions of object in a bucket.
$ gcloud alpha storage restore gs://bucket/file1.txt#123 \
$ gcloud alpha storage restore gs://bucket/file1.txt --all-versions
Restore several objects in a bucket (with or without generation):
$ gcloud alpha storage restore gs://bucket/file1.txt \
gs://bucket/file2.txt#456
Restore all text objects in a bucket:
Restore the latest soft-deleted version of all text objects in a bucket:
$ gcloud alpha storage restore gs://bucket/**.txt
Read list of files to restore from stdin:
Restore a list of objects read from stdin (with or without generation):
$ cat list-of-files.txt | gcloud alpha storage restore \
--read-paths-from-stdin