mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 14:51:48 +08:00
s3: backend restore command to skip non-GLACIER objects
This commit is contained in:
parent
a9d3283d97
commit
319ac225e4
|
@ -3338,6 +3338,10 @@ func (f *Fs) Command(ctx context.Context, name string, arg []string, opt map[str
|
|||
st.Status = "Not an S3 object"
|
||||
return
|
||||
}
|
||||
if o.storageClass != "GLACIER" && o.storageClass != "DEEP_ARCHIVE" {
|
||||
st.Status = "Not GLACIER or DEEP_ARCHIVE storage class"
|
||||
return
|
||||
}
|
||||
bucket, bucketPath := o.split()
|
||||
reqCopy := req
|
||||
reqCopy.Bucket = &bucket
|
||||
|
|
Loading…
Reference in New Issue
Block a user