How To Sync Box to S3 Using rclone

To sync various cloud resources, use the excellent cli tool rclone from https://rclone.org/docs/
For this use case, the need was to sync from Box to an AWS S3 bucket.
Install rclone:
1 |
curl https://rclone.org/install.sh | sudo bash |
Configure both S3 and Box – for remote name labels I just used “S3” and “Box”:
1 |
rclone config |
Validate Access and Functionality:
1 2 |
rclone lsd Box: rclone lsd S3: |
Perform the Sync:
1 |
rclone sync Box:Folder1 S3:your-bucket-name-here/Folder1 |
A more advanced example:
1 2 3 4 |
#!/bin/sh # boxsync /usr/bin/rclone sync --exclude "FromS3/**" --exclude 'FromS3_$folder$' Box:'Folder1' S3:'your-bucket/Folder1' /usr/bin/rclone sync --include "FromS3/**" S3:'your-bucket/Folder1' Box:'Folder1' |
Leave Your Comment
All fields marked with "*" are required.