How to use rclone with eazyBackup e3 S3 Compatible Object Storage
Use our step-by-step guide to configure a new rclone remote and create a scheduled sync.
- Start by installing rclone 
We will use the official installation script for this example:
sudo apt updatecurl https://rclone.org/install.sh | sudo bash- Verify that rclone has been installed: 
rclone version- Once rclone is installed, you need to set up a new remote that points to the eazyBackup e3 storage service. 
rclone config- When prompted with "No remotes found - make a new one", type - n(for new remote).

Give the new remote a name, for example, "e3".
- When prompted for the "Type of storage to configure." select option - 4"Amazon S3 Compliant Storage Provider"

- When prompted to choose the storage provider, select option - 34"Any other S3 compatible provider".

- Press - 1to enter your access key and secret key

- Configure the region, when prompted, press - enterfor the default.
- Configure API URL, you can find your API endpoint URL on the Acceess Keys page of our Cloud Storage Dashboard. 
- When prompted for the Location constraint, Press - Enterfor the default ("").
- When prompted for the ACL, you can press - Enterfor the default or- 1for the default option "Owner gets FULL_CONTROL. No one else has access rights".

- Press - nto skip editing the advanced config
- Press - yto confirm the remote config, if everything looks good.
- Press - qto quit
You can test the connection by listing the buckets:
rclone lsd e3:If you have not created any buckets, they can be created from the storage dashboard or by using rclone.
To create a new bucket with rclone, us the following command
rclone mkdir e3:myrclonebucketCreate a Backup/Sync Script
Below is a basic guide you can follow to create a scheduled backup or sync using rclone.
First, you will need a shell script that contains the required rclone commands. For example, if you wanted to sync a local folder to a bucket every day, you could create a script called mydailybackup.sh:
#!/bin/bash
# mydailybackup.sh
LOCAL_DIR="/path/to/local/folder" # replace with your local folder.
REMOTE="e3:mybucketname/folder"  # replace with your remote name & bucket/folder.
LOG_FILE="/var/log/rclone_sync.log"
echo "Starting sync: $(date)" >> "$LOG_FILE"
rclone sync "$LOCAL_DIR" "$REMOTE" -v --log-file="$LOG_FILE"
echo "Completed sync: $(date)" >> "$LOG_FILE"Create the Script:
nano ~/mydailybackup.shMake the file executable:
chmod +x ~/mydailybackup.shSchedule the backup with Cron, open your crontab editor by running:
crontab -eTo schedule the script to run daily at midnight, add this entry at the end of the file:
0 0 * * * /home/your_username/mydailybackup.sh**0 0 * * *** – works out to “minute 0 of hour 0 on every day of every month.”
After scheduling, monitor your backup or sync logs to ensure the operation completes successfully.
Following these steps, you should have a daily scheduled sync using rclone.
Last updated
Was this helpful?