Rclone
Backup to rsync.net
- rsync.net Cloud Storage has rclone built in
You can go ‘back in time’ with the free snapshots included with an rsync.net account.
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:
The name of the rclone remote (
spaces-hatherleigh)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:
The name of the rclone remote (
spaces-hatherleigh)The bucket name (
www-kbsoftware-co-uk)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:
The name of the rclone remote (
hatherleigh-transfer) from~/.config/rclone/rclone.conf.The bucket name (
my-web-site)The folder / directory where the backup will be stored (
./my-web-site).