Skip to content

Running a recursive mc undo with time limitations? #19580

Answered by Bjohnson131
jaw-sh asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @jaw-sh. I was able to un-delete versioned objects in my Minio installation with a single bash command. In short, the best tool to use for this job is the AWS cli- minio's CLI doesn't provide the functionality that is needed.

Using the object versioning commands provided by the list-object-versions command, we can delete the 'delete marker' on all of the objects.
I used these docs as a reference: https://repost.aws/knowledge-center/s3-undelete-configuration, specifically from the Remove the delete marker on thousands of objects section.

here's the monster of a command that you can use here:

aws s3api list-object-versions --bucket bk2 --endpoint-url http://localhost:9110 --query 'Delet…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@jaw-sh
Comment options

@Bjohnson131
Comment options

@jaw-sh
Comment options

@Bjohnson131
Comment options

Answer selected by jaw-sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants