RClone - RSync for Cloud Services
What is RClone
RClone is a command line program that syncs files and directories to and from a handful of cloud services.
- MD5/SHA1 hashes checked at all times for file integrity
- Timestamps preserved on files
- Partial syncs supported on a whole file basis
- Copy mode to just copy new/changed files
- Sync (one way) mode to make a directory identical
- Check mode to check for file hash equality
- Can sync to and from network, eg two different cloud accounts
- Optional encryption (Crypt)
- Optional FUSE mount (rclone mount)
- Amazon Drive
- Amazon S3
- Backblaze B2
- Google Cloud Storage
- Google Drive
- Memset Memstore
- Microsoft Azure Blob Storage
- Microsoft OneDrive
- Openstack Swift
- Oracle Cloud Storage
- Rackspace Cloud Files
- Yandex Disk
- The local filesystem
- Plan 9
From pre-compiled binaries
Fetch and unpack
Download it from https://downloads.rclone.org/rclone-current-windows-amd64.zip
Create C:\Program Files\rclone
Copy the recently unziped files into this directory
Save script below
SET RCLONE_ROOT_FOLDER_NAME= SET RCLONE_FOLDER_NAME= SET RCLONE_DEST=SomeBackupService:%RCLONE_ROOT_FOLDER_NAME% cd "C:\program files\rclone" for /f "tokens=1,2 delims=;" %%X in (sources.txt) do ( echo %%X echo %%Y rclone.exe --config="./.rclone.conf" --exclude-from "excludes.txt" -v sync "%%X" %RCLONE_DEST%/%RCLONE_FOLDER_NAME%/%%Y
RCLONE_ROOT_FOLDER_NAME to the name of the folder on your cloud service where you want backups to be synced to.
RCLONE_FOLDER_NAME to the name of this backup job (assuming you have multiple machines/jobs backing up to the same cloud service).
Create a file called
C:\Program Files\rclone\sources.txt file with a line for each source directory to backup, like so:
The path before the ; is the source path. After the ; is the path used by the cloud service.
Now create the file
C:\Program Files\rclone\excludes.txt with a line for each globally excluded pattern:
"desktop.ini" "Photo Booth Library" ".DS_Store" ".localized"
rclone.exe config to generate a config for that machine.
Move the generated config file from
The app is quite light too, it does not "fry" the CPU as Google's sync app or Dropbox's sync app do. I believe it is faster too.
Github Project: https://github.com/ncw/rclone