Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »


NOTE: Please make sure you have logged in into your RAC instance. Once logged in follow the steps:

STEP - I :  Install Rclone on instance

Rclone is a command line program to sync files and directories to and from cloud storage.

Quickstart Installation

  • Download the relevant binary.

  • Extract the rclone or rclone.exe binary from the archive.

  • Run rclone config to set up.

Installation by using a script

Install rclone on Linux/macOS/BSD systems:

c

STEP - II :  Create a directory and mount the attached storage.

Create a directory

$ sudo mkdir  directory path

Example: $ sudo mkdir /mnt/rclone_test


Mount a volume

$ sudo mount volume  directory path

Example: $ sudo mount /dev/sdc   /mnt/rclone_test

STEP - III : Configure Rclone.

After installing Rclone:

  1. Type $ rclone config

  2. Type n for a New remote

  3. Give a name to your remote (AWS in this example)

  4. Select the type of storage to configure


         5. Choose the S3 provider

       6. Select the type of authentication method.       

PLEASE NOTE:  Enter your secret AWSAccesskeyId and AWSSecretKey in case you selected false.

     7. Select the region to connect( Canada-Central Region in this example).

      8. Select the Type of Access Control and encryption method  you want to use.

    9. Select the Endpoint and Location constraint values.

     10. Select the Redundancy type and verify all the remote config values

           before closing the rclone.



STEP- IV : Creating  a S3 bucket using Rclone.

Creating and listing a S3 bucket

$ rclone mkdir remotename:bucket

Example: $ rclone mkdir  AWS:rclonebucket3


Once remote is configured and bucket is created you can use below commands to list the remotes and buckets:

ubuntu@firstinstance:~$ rclone listremotes

ubuntu@firstinstance:~$ rclone lsd remotename:


STEP - V : Synching/Copying using Rclone


Rclone Sync - it makes source and destination identical, modifying destination only.

Run below command to sync your volume to AWS bucket:

$ sudo rclone sync /home/local/directory(source)  remotename:bucket(destination)

Example: $ sudo rclone sync /mnt/rclone_test/ AWS:rclonebucket

NOTE: Switch the source and destinations values if you want to copy data from AWS bucket to RAC volume.


Rclone Copy- Copy files from source to destination, skipping already copied.

Run below command to sync your volume to AWS bucket:

$ sudo rclone copy  /home/local/directory(source)  remotename:bucket(destination)

Example: $ sudo rclone copy /mnt/rclone_test/ AWS:rclonebucket

NOTE: Sync or copy volume to Amazon S3 bucket (requires a write access on bucket).


This tutorial assumes that you have the following already in place:

  • An AWS account.

  • AWSAccess keys.

  • A RAC Instance with attached volume.


*************************
  • No labels