- Migrating Oracle Database Backup Cloud Service Backups to Oracle Cloud Infrastructure
- Migrate Database Backups to Oracle Cloud Infrastructure Object Storage
- Configure Your Environment
Configure Your Environment
Configure your target environment to enable rclone
to
access Oracle Cloud
Infrastructure Object Storage Classic and Oracle Cloud
Infrastructure Object Storage.
- Create the
rclone.conf
file in the~/.config/rclone
folder if the file doesn't already exist. - Add the following information to the
~/.config/rclone/rclone.conf
file 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.0
Replace the values for the
user, key, storage_url,
andauth
parameters with the values specific to your source environment. Where:user
: Specify the value you that you passed to theX-Storage-User
header 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.conf
file:[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.com
Replace the values for the
access_key_id, secret_access_key, region
andendpoint
parameters with the values specific to your target environment. Where:access_key_id
andsecret_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: