Need help in restrict Bandwidth limit weekdays

What is the problem you are having with rclone?

Need help in restricting the Bandwidth weekdays to upload the local files to azure blob, my aim is to run the script continuously but from Monday to Friday between 6 Am to 5 PM the Bandwidth should be 1k all other time it should run 90M but it is not happening, it is taking 90M for all the time.

Run the command 'rclone version' and share the full output of the command.

rclone v1.64.0

  • os/version: Microsoft Windows Server 2019 Standard 1809 (64 bit)
  • os/kernel: 10.0.17763.3650 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.21.1
  • go/linking: static
  • go/tags: cmount

Are you on the latest version of rclone?
yes

Which cloud storage system are you using? (eg Google Drive)

Azure Blob

The command you were trying to run (eg rclone copy /tmp remote:tmp)

.\rclone.exe copy -v --transfers=18 --bwlimit "Mon-06:00,0k 17:00,90M Fri-17:00,off" "\server\folde1\folder2\" azure:vttarchive --azureblob-sas-url "https://SASkey


#### Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

No error

I think this should do it.

--bwlimit "Mon-06:00,1k Mon-17:00,90M Tue-06:00,1k Tue-17:00,90M Wed-06:00,1k Wed-17:00,90M Thu-06:00,1k Thu-17:00,90M Fri-06:00,1k Fri-17:00,90M"

Thank You Nick for the details, one question from Friday 17:00 to Monday 6:00 hours hope Bandwidth will be 90M

Thank You
Srini.

It should be if I got the string right!

Hi Nick,

Please find my observations rclone command with below switch, script runs fine with bwlimit morning times but in evening 17:00 time the speed is not jumping from 1K to 90M , after 17:00 i need to stop the script and run it again then it is taking 90M and it will be back to 1K in morning, not sure if this is a bug.

--bwlimit "Mon-06:00,1k Mon-17:00,90M Tue-06:00,1k Tue-17:00,90M Wed-06:00,1k Wed-17:00,90M Thu-06:00,1k Thu-17:00,90M Fri-06:00,1k Fri-17:00,90M"

Seems to be working when I try it.

You should see this in the log

ncw@dogger:~$ rclone rcd -v --bwlimit "Thu-12:00,1M Thu-12:27,2M"
2023/10/05 12:26:35 INFO  : Starting bandwidth limiter at 1Mi Byte/s
2023/10/05 12:26:35 NOTICE: Serving remote control on http://127.0.0.1:5572/
2023/10/05 12:27:35 NOTICE: Scheduled bandwidth change. Limit set to 2Mi Byte/s

Hi Nick,

I am running from Powershell may be issue with in Powershell ?

Try a simple test like the one I did above and report back the results. Note that rclone only checks the bandwidth limit every minute so you may have to wait up to a minute for it to change.

Hi Nick, I tried but same issue so i checked on different system and it worked fine not sure what could be the issue. Anyway thank you very much for your help on this.

Probably something to do with time or timezone on your computer.

The times that rclone uses in the bwlimit schedule should be localtime.

Does rclone print the correct localtime in its logs?

Hi Nick,

I did not checked the time and i rebooted the system, i tested the script and it worked thank you.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.