Taken from Rclone’s documentation:
Excessive throttling or blocked on SharePoint
If you experience excessive throttling or is being blocked on SharePoint then it may help to set the user agent explicitly with a flag like this:
The specific details can be found in the Microsoft document: Avoid getting throttled or blocked in SharePoint Online
Which means if you pass
-o rclone.user-agent="ISV|rclone.org|rclone/v1.55.1" to Restic, it may very well speed up your OneDrive backups!
Please correct me if I put this thread in the wrong place, or if that isn’t the proper way to pass the user-agent. I haven’t tested with Restic yet, but I was trying to download 2.5TB of data for a user and it was going from 60MB/s down to 1-2MB/s after awhile. So far, with the --user-agent string I’m doing a consistent 50-60MB/s.
Update: I did eventually get throttled. It definitely stayed at top speed for longer, though. Leaving this here in case it helps someone in the future! I think the real answer is creating your own ClientID for Rclone, but that isn’t something I have access to in my organization.
Second update: It worked great with Rclone alone, but I couldn’t figure out how to get it to work with Restic.