Configure Your Environment
Configure your target environment to enable rclone to access Oracle Cloud Infrastructure Object Storage Classic and Oracle Cloud Infrastructure Object Storage.
To configure your target environment:
-
Create the
rclone.conffile in the~/.config/rclonefolder if the file doesn’t already exist. -
Add the following information to the
~/.config/rclone/rclone.conffile to create the remote device configuration for the source.[classic-source] type = swift env_auth = false user = Storage-acme:myuserName key = pas$word storage_url = https://acme.storage.oraclecloud.com/v1/Storage-acme auth = https://acme.storage.oraclecloud.com/auth/v1.0See Get Details of the Source Environment.
Replace the values for the
user, key, storage_url,andauthparameters with the values specific to your source environment. Where:-
user: Specify the value that you passed to theX-Storage-Userheader while requesting an authentication token to access Oracle Cloud Infrastructure Object Storage Classic. -
key: Specify the password to access your Oracle Cloud Infrastructure Object Storage Classic account. -
storage_url: Specify the REST Endpoint URL. -
auth: Specify the authentication URL that you had passed while requesting an authentication token to access Oracle Cloud Infrastructure Object Storage Classic.
-
-
To create the remote device configuration for the destination, add the following information to the
~/.config/rclone/rclone.conffile:[oci-dest] type = s3 env_auth = false access_key_id = YOUR_ACCESS_KEY secret_access_key = YOUR_ACCESS_SECRET_KEY region = YOUR_REGION_IDENTIFIER endpoint = https://YOUR_NAMESPACE.compat.objectstorage.YOUR_REGION_IDENTIFIER.oraclecloud.comReplace the values for the
access_key_id, secret_access_key, regionandendpointparameters with the values specific to your target environment. Where:-
access_key_idandsecret_access_key: To identify your access key and secret access key, see To create a Custom Secret key in Oracle Cloud Infrastructure documentation. -
region: To identify the region, see Regions and Availability Domains in Oracle Cloud Infrastructure documentation. For example,us-ashburn-1. -
endpoint: To identify the namespace, see Understanding Object Storage Namespaces in Oracle Cloud Infrastructure documentation.
-
-
Verify your configuration.
The following command uses the remote device configuration for the source to display the existing containers in Oracle Cloud Infrastructure Object Storage Classic:
# rclone lsd classic-source:The following command uses the remote device configuration for the target to display the existing buckets in Oracle Cloud Infrastructure Object Storage:
# rclone lsd oci-dest: