Restore Entire Bucket

Viewed 1622

I have a few buckets on google cloud storage and I'm guessing my lifecycle file was not setup correctly because all of my buckets are now empty.

{
  "lifecycle": {
    "rule": [
      {
        "action": {"type": "Delete"},
        "condition": {
          "age": 60,
          "isLive": false
        }
      },
      {
        "action": {"type": "Delete"},
        "condition": {
          "numNewerVersions": 3 
        }
      }
    ]
  }
}

Since I have versioning turned on and I can see the files using ls -la on the bucket is there any way to restore ALL of the files and how can I keep them from being deleted again?

1 Answers
Related