Drive stop on upload limit for box.con

Hello
Any chance adding the drive-stop-on-upload-limit flag for box.com, too?

Precisely I‘m looking for a way to automatically let rclone switch the box account if the 1tb (per month) quota is reached.

Best regards

You can try using --max-transfer flag.

Thanks I‘ll take a look at it. But how is the value being stored? So if I setup an rclone script to upload files daily, will it always start from 0 bytes transferred?

Maybe I can reach what I want with the metrix endpoint of rclone?

Yes.

no idea what metrix endpoint is

Soo,
I setup rclone rcd with this command:

rclone rcd --rc-enable-metrix --rc-no-auth --rc-addr 127.0.0.1:5575

Now I am able to fetch the metrics data with

curl -s http://127.0.0.1:5575/metrics

and I am seeing this line:

rclone_bytes_transferred_total 0

Now I am a little stuck on how to adjust my upload script to give the data to the rc-daemon.
This is how the script currently looks like:

#!/bin/bash

lock_file="$HOME/scripts/rclone-box-upload.lock"

trap 'rm -f "$lock_file"; exit 0' SIGINT SIGTERM
if [ -e "$lock_file" ]
then
echo "Rclone BOXupload script is already running."
exit
else
rm "$HOME"/scripts/rclone-BOX-upload.log
touch "$lock_file"
"$HOME"/bin/rclone move "$HOME/path remotepath:
--config="$HOME"/.config/rclone/rclone.conf
--tpslimit 5
-vvv
--delete-empty-src-dirs
--fast-list
--bwlimit=200M
--use-mmap
--transfers=50
--checkers=30
--log-file "$HOME"/scripts/rclone-BOX-upload.log
rm -f "$lock_file"
trap - SIGINT SIGTERM
exit
fi

Could anybody please assist here? :slight_smile:

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