Re: using s3cmd to put object into cluster with version?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

I use the aws CLI tool, like this:

aws --endpoint-url="" class="moz-txt-link-freetext" href="http://your-rgw:7480">http://your-rgw:7480 s3api put-bucket-versioning --bucket yourbucket --versioning-configuration Status=Enabled


I also set a lifecycle configuration to expire older versions, e.g.:


aws --endpoint-url="" class="moz-txt-link-freetext" href="http://your-rgw:7480">http://your-rgw:7480 s3api put-bucket-lifecycle-configuration --bucket yourbucket --lifecycle-configuration file:///path/to/your/lifecycle.json

Lifecycle configuration example:

{
    "Rules": [{
        "Status": "Enabled",
        "Prefix": "",
        "NoncurrentVersionExpiration": {
            "NoncurrentDays": 60
        },
        "Expiration": {
            "ExpiredObjectDeleteMarker": true
        },
        "ID": "expire-60days"
    }]
}

But I am not sure how stable the versioning and lifecycle features in Ceph are, I suspect that some of my issues with the rados gateway relate to using versioning and lifecycle rules. Maybe someone can comment on that.

Regards,

Martin


Am 03.01.18 um 11:41 schrieb 13605702596@xxxxxxx:
hi
    i'm using s3cmd ( version 1.6.1) to put object to ceph cluster (jewel 10.2.10), 
    and when i put the file with the same name, the older one is overrided.

    i know that rgw supports bucket object version. But how can i enabled it when using s3cmd?

    thanks




_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux