Rclone

Backup to rsync.net

From Using rclone for Cloud to Cloud Transfer

Check you have access to rsync.net via ssh:

ssh zh4600@zh4600.rsync.net ls -la

Configure rclone on rsync.net:

ssh [email protected] rclone config

Configuration complete.
Options:
- type: s3
- provider: DigitalOcean
- access_key_id: DOPK4
- secret_access_key: LG3PK
- endpoint: lon1.digitaloceanspaces.com
- acl: private
Keep this "spaces-hatherleigh" remote?

Check you have access by listing the files in the S3 bucket:

ssh zh4600@zh4600.rsync.net rclone ls spaces-hatherleigh:www-hatherleigh-info

The parameters are:

  1. The name of the rclone remote (spaces-hatherleigh)

  2. The bucket name (www-kbsoftware-co-uk)

Backup (sync) the whole repository:

ssh zh4600@zh4600.rsync.net rclone sync spaces-hatherleigh:www-hatherleigh-info rclone/spaces/hatherleigh

The parameters are:

  1. The name of the rclone remote (spaces-hatherleigh)

  2. The bucket name (www-kbsoftware-co-uk)

  3. The folder / directory where the backup will be stored (rclone/spaces/kbsoftware).

View your backup:

zh4600@zh4600.rsync.net ls -la rclone/spaces/kbsoftware

Sync from Digital Ocean Spaces

Browse to Spaces Object Storage, Access Keys.

Create an Access Key for your bucket with Read/Write/Delete permissions.

Update ~/.config/rclone/rclone.conf with the Access Key ID (access_key_id) and the secret key (secret_access_key):

[hatherleigh-transfer]
type = s3
provider = DigitalOcean
env_auth = false
access_key_id = DOPK5
secret_access_key = GPjJ
endpoint = lon1.digitaloceanspaces.com
acl = private
rclone sync hatherleigh-transfer:my-web-site ./my-web-site

The parameters are:

  1. The name of the rclone remote (hatherleigh-transfer) from ~/.config/rclone/rclone.conf.

  2. The bucket name (my-web-site)

  3. The folder / directory where the backup will be stored (./my-web-site).