Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleExamples...


Panel
titleExample 1 - enable multi-part and expired version cleanup after 30 days


Code Block
pshell> lifecycle my-bucket +mv



Panel
titleExample 2 - clean up incomplete multi-part uploads after 7 days


Code Block
pshell> lifecycle my-bucket +m 7



Panel
titleExample 3 - turn on versioning and delete expired non-current objects after 30 days


Code Block
pshell> lifecycle my-bucket +v 30




Panel
titleReviewing deleted objects

lifecycle my-bucket --review

Reviewing deletions: bucket=my-bucket, prefix=

 * folder1/my_file.txt


Panel
titleRestoring an object

lifecycle my-bucket/folder1/my_file.txt --restore

Restoring deletions: bucket=my-bucket, prefix=folder1/my_file.txt

restoring: folder1/my_file.txt

Restored object count: 1