Moving Data to and from Object Storage
Learn how to move your data between Object Storage and other data hosting systems.
Use the Rclone tool to synchronize files and directories between an Object Storage bucket and other cloud storage providers, or between an Object Storage bucket and on-premises systems. Rclone is known for its simplicity, efficiency, and wide support for many cloud services, including Object Storage. For more information, see Rclone.
Prerequisites
Installation and use of Rclone has the following prerequisites:
- You must have permissions to create and edit files, create directories and folder, run commands, and install software on your laptop or workstation
- You must have access to your Object Storage and to your target cloud storage.
Installing Rclone
If you already have a networking environment set up in your tenancy with VCN and networks and can launch compute instances, you can run this lab on an OCI Compute instance. We recommend using Oracle Linux.
Linux and BSD Systems
Open a terminal and run the following command:
sudo -v ; curl https://rclone.org/install.sh | sudo bash
Windows
Download the correct installation file for your processor type:
Extract the file and add the final location of the Rclone executable file (.exe
) to your Windows system PATH environment variable for easy command line access.
Mac OS
Open a terminal window and install Rclone on Mac OS X using Homebrew:
brew update && brew install rclone
Installing OCI CLI
Use of the OCI command line interface (CLI) is required to use Rclone to move your data to and from Object Storage. To set up the OCI CLI on your computer, see Installing the CLI.
Configuring Rclone
Copy Data from OCI Object Storage
Copy the data from the Object Storage bucket containg your data into the target location.
Other Cloud Providers
Contact the cloud provider or check https://rclone.org/ for information on how to copy data from an Object Storage bucket into the bucket of another cloud.
On-Premises
Run the following to copy data to a local filesystem on-premises:
rclone copy --progress --transfers=20 oci:<oci_bucket> /<local_filesystem_or_nfs_mount>