Skip to content
Snippets Groups Projects
Commit 3a47f7d2 authored by Milan's avatar Milan
Browse files

s3 versioning fix code

parent 40a7fe39
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,7 @@ Now we will put new object into created bucket.
"VersionId": "KdS5Yl0d06bBSYriIddtVb0h5gofiNX"
}
Now we can change the file updating the body.
Now we can change the file via updating the body.
aws s3api put-object --key "file name" --body "file path 2" --bucket "bucket name" --profile "profil name" --endpoint-url=https://s3.cl2.du.cesnet.cz
......@@ -245,6 +245,7 @@ Now we can list the particular versions.
For a versionless bucket, the object is permanently deleted and cannot be recovered. For a versioned bucket, all versions remain in the bucket and RGW inserts a delete flag that becomes the current version:
aws s3api list-object-versions --bucket "bucket name" --profile "profil name" --endpoint-url=https://s3.cl2.du.cesnet.cz
{
"Versions": [
{
......@@ -306,6 +307,7 @@ In the case of a versioned bucket, if an object with a specific VersionID is del
Now we can check the object versions again.
aws s3api list-object-versions --bucket "bucket name" --profile "profil name" --endpoint-url=https://s3.cl2.du.cesnet.cz
{
"DeleteMarkers": [
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment