forked from TrueCloudLab/rclone
s3: backend restore command to skip non-GLACIER objects
This commit is contained in:
parent
a9d3283d97
commit
319ac225e4
1 changed files with 4 additions and 0 deletions
|
@ -3338,6 +3338,10 @@ func (f *Fs) Command(ctx context.Context, name string, arg []string, opt map[str
|
||||||
st.Status = "Not an S3 object"
|
st.Status = "Not an S3 object"
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if o.storageClass != "GLACIER" && o.storageClass != "DEEP_ARCHIVE" {
|
||||||
|
st.Status = "Not GLACIER or DEEP_ARCHIVE storage class"
|
||||||
|
return
|
||||||
|
}
|
||||||
bucket, bucketPath := o.split()
|
bucket, bucketPath := o.split()
|
||||||
reqCopy := req
|
reqCopy := req
|
||||||
reqCopy.Bucket = &bucket
|
reqCopy.Bucket = &bucket
|
||||||
|
|
Loading…
Reference in a new issue