s3cmd icon indicating copy to clipboard operation
s3cmd copied to clipboard

Restoring an older version of a file

Open jeffpkamp opened this issue 2 years ago • 0 comments

I am using the following command to initiate restoration of files in was

s3cmd restore --restore-days=${days} --restore-priority=${priority} -r ${uri} >> ${FILE}

I want to restore a version of a file which is not the current version, but I don't see a place I can put the version-id in, and it is not in the s3 URL that is provided on was.

Is there a way to do this or should I use the aws s3api for this?

jeffpkamp avatar May 31 '23 19:05 jeffpkamp