3

I am new and experimenting with Google Cloud Storage. I deleted my bucket while trying to learn how to restore my data back. I was under the impression that even if you delete a bucket it can be restored. But I am not finding that option on the console.

How can I restore the bucket I deleted on Google Cloud Storage?

user4157124
  • 2,809
  • 13
  • 27
  • 42
portfoliobuilder
  • 7,556
  • 14
  • 76
  • 136
  • Just keep in mind that object versioning does not protect you against a bucket deletion - so to be clear if you delete the bucket and have object versioning on you still will not be able to recover the bucket. – Caspianstrider Nov 07 '20 at 19:27

2 Answers2

8

The only option for restoring accidentally deleted data is to enable object versioning. Unfortunately, that's not an option you can apply after having already deleted the objects.

Mike Schwartz
  • 11,511
  • 1
  • 33
  • 36
  • 2
    reply by Caspianstrider: "Just keep in mind that object versioning does not protect you against a bucket deletion - so to be clear if you delete the bucket and have object versioning on you still will not be able to recover the bucket." – Caner Aug 31 '21 at 13:55
0

To support the retrieval of objects that are deleted or replaced, Cloud Storage offers the Object Versioning feature.

Versioning can be enabled or disabled at bucket level. When Versioning is enabled and if live object is deleted it becomes non concurrent object version. If you delete non concurrent object version, then object is deleted.

Older versions are identified by (object key + generation number). Versioning increases storage cost since multiple versions of same objects are maintained. Each noncurrent version of an object is charged at the same rate it was when it was live.

Read more https://googlecloudtutorials.com/google-cloud-storage-free/