Completely stop upload

What is the problem you are having with rclone?

My ISP gives me unlimited bandwidth but only during the night (00.00 - 07.00)
So I want to stop my upload script at around 6AM in the morning and then using cron to restart the script again at lets say 1AM.
Using the --max-transfer parameter I can already limit the transfer and with --bw-limit I can limit the speed of the upload.
According to the docs I can also limit the speed with bw-limit on a timeset ( 5Mb/s between noon and 5PM etc etc)
But is it also possible to lower the speed to 0 or stop the upload completely?
fyi, when setting the bw-limit to 0 I don't see anything in the logs but when I use 2M i can see the following (Starting bandwidth limiter at 2MBytes/s) so I don't think the "0" value is used.

What is your rclone version (output from rclone version)

rclone v1.50.2

  • os/arch: linux/amd64
  • go version: go1.13.4

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Ubuntu server 18.10

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

Google Drive

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

rclone copy SOURCE DEST --max-transfer=200G --bwlimit "Mon-22:00,0" / --bwlimit=0

On this thread it is proposed to simply kill the rclone command but I was hoping to find a more elegant method or a method already build in.

Don't use 0, make it like "1b" and you can see it makes a very tiny transfer.

felix@gemini:~$ rclone copy /etc/hosts GD: --bwlimit 1b -P
Transferred:   	       227 / 227 Bytes, 100%, 4 Bytes/s, ETA 0s
Errors:                 0
Checks:                 0 / 0, -
Transferred:            0 / 1, 0%
Elapsed time:       53.7s
 *                                         hosts:100% /227, 1/s, 0s

Thanks for your answer Animosity022

I ended up using --bwlimit="01:00,2M 06:00,1b" \

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