This tutorial will show you how to use rclone to back up your data to Amazon S3. Please note that you will need a valid Amazon / AWS account for this to work. In addition, AWS will charge you based on the amount of storage you use.
|Table of Contents|
Install Rclone on instance
rclone is a command line program to sync files and directories to and from cloud storage.
Download the relevant binary.
Extract the rclone binary from the archive.
Run rclone config to set up.
Installation by using a script
Install rclone on Linux/macOS/BSD systems:
curl https://rclone.org/install.sh | sudo bash
After installing Rclone:
Type n for a New remote
Give a name to your remote (AWS in this example)
Select the type of storage to configure
before closing the rclone.
Create a S3 bucket using Rclone
Run the following command:
$ rclone listremotes $ rclone lsd <remote name>:
Synching/Copying using rclone
Run the below command to sync your data to your AWS bucket:
$ sudo rclone sync /var/lib/mysql aws:mysql_backups
To copy files from source to destination and skipping files that have already been copied: