What is the problem you are having with rclone?
Hi, thank you for browsing the help section and helping others!
I have two crypt remotes, one is in a iDrive e2 bucket, the other in a Backblaze b2 bucket.
My goal: To create restic backups once a day of the entire iDrive e2 bucket to the restic repo located on my B2 bucket. The purpose of this is to create redundancy so if I lose access to iDrive E2 or something goes wrong, I still have all my files on another cloud provider.
Since Restic only allows backing up from file systems, I have to:
- restic serve the repo using
rclone serve restic backblaze_crypt:ResticRepos --addr http://localhost:8081
, since it's located on an rclone crypt - rclone mount the iDrive E2 remote using this command:
rclone mount idrive_crypt: Y: -o Threadcount=16 --vfs-cache-mode full --cache-dir "%USERPROFILE%\Desktop\rclone_cache" --dir-cache-time 168h --network-mode --transfers 128 --vfs-fast-fingerprint --vfs-refresh --s3-chunk-size 16M --s3-upload-cutoff 32M --s3-upload-concurrency 32
I then use restic backup: restic -r rest:http://127.0.0.1:8081/ backup "Y:" --read-concurrency 128 --compression max -vv --iexclude-file=restic_exclude.txt --verbose
The issue: The rclone mount is a significant source of bottleneck, as the fastest it can read files from iDrive E2 is 20 files per second. This means that using restic backup on a folder that contains 12,000 files (4GB total), it takes 10 minutes each time the restic backup command is ran. This is true even if there are no file changes. Obviously waiting 10 minutes for a daily backup is no big deal, however I cannot scale this setup to my entire ~1TB worth of files, because the daily backup would take more than 24h.
I tried about 10 different cloud providers, including non-S3 ones and 20 files read per second via mount is by far the fastest, so changing cloud providers won't help. Is there anything I can do to speed this up?
The only solution I see is sync the entire iDrive bucket to a local disk each day and then create the restic backup from that. This would be much faster, but it's not an option with my current setup and goals. I also tested backing up straight to Backblaze directly instead of serving a crypt remote, but found there was a negligible speed difference.
Run the command 'rclone version' and share the full output of the command.
rclone v1.70.3
- os/version: Microsoft Windows 10 Pro 22H2 22H2 (64 bit)
- os/kernel: 10.0.19045.6093 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.24.4
- go/linking: static
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
iDrive e2 and Backblaze b2