Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

oracle-object-storage: expose the storage_tier option in config

Manoj Ghoshe2886aaddfe0
diff --git a/backend/oracleobjectstorage/options.go b/backend/oracleobjectstorage/options.go
index 9e7e65fd5..2916157be 100644
--- a/backend/oracleobjectstorage/options.go
+++ b/backend/oracleobjectstorage/options.go
@@ -123,6 +123,22 @@ func newOptions() []fs.Option {
Value: "Default",
Help: "Use the default profile",
}},
+ }, {
+ // Mapping from here: https://github.com/oracle/oci-go-sdk/blob/master/objectstorage/storage_tier.go
+ Name: "storage_tier",
+ Help: "The storage class to use when storing new objects in storage. https://docs.oracle.com/en-us/iaas/Content/Object/Concepts/understandingstoragetiers.htm",
+ Default: "Standard",
+ Advanced: true,
+ Examples: []fs.OptionExample{{
+ Value: "Standard",
+ Help: "Standard storage tier, this is the default tier",
+ }, {
+ Value: "InfrequentAccess",
+ Help: "InfrequentAccess storage tier",
+ }, {
+ Value: "Archive",
+ Help: "Archive storage tier",
+ }},
}, {
Name: "upload_cutoff",
Help: `Cutoff for switching to chunked upload.
diff --git a/docs/content/oracleobjectstorage.md b/docs/content/oracleobjectstorage.md
index 29a8d8e97..8c28f2898 100644
--- a/docs/content/oracleobjectstorage.md
+++ b/docs/content/oracleobjectstorage.md
@@ -290,6 +290,24 @@ Properties:
Here are the Advanced options specific to oracleobjectstorage (Oracle Cloud Infrastructure Object Storage).
+#### --oos-storage-tier
+
+The storage class to use when storing new objects in storage. https://docs.oracle.com/en-us/iaas/Content/Object/Concepts/understandingstoragetiers.htm
+
+Properties:
+
+- Config: storage_tier
+- Env Var: RCLONE_OOS_STORAGE_TIER
+- Type: string
+- Default: "Standard"
+- Examples:
+ - "Standard"
+ - Standard storage tier, this is the default tier
+ - "InfrequentAccess"
+ - InfrequentAccess storage tier
+ - "Archive"
+ - Archive storage tier
+
#### --oos-upload-cutoff
Cutoff for switching to chunked upload.