Rclone

description: Rsync with remote provider for backups - Commandline tool

lang: ENG

Configuration file for Scaleway

This a sample for Scaleway that you need to store in $HOME/.config/rclone/rclone.conf

[scaleway] # Remote name
type = s3
provider = Scaleway
access_key_id = XXXXX
secret_access_key = XXXX
region = fr-par
endpoint = s3.fr-par.scw.cloud
acl = private
storage_class = STANDARD # or GLACIER

Synchronize files with remote

It will synchronize files which means it can delete file on remote.

rclone sync -v "/path/to/backup" remote:bucket_name

Copy files with remote

Same as sync but it will keep the deleted files.

rclone copy  "/path/to/backup" remote:bucket_name

Restore glacier file

If the data are store with the GLACIER storage class, you first need to restore them. It can take up to 48 hours!

rclone backend restore remote:bucket_name -o priority=Standard

Restore files

rclone copy remote:bucket_name "/path/to/restore"