Need help to update my old gdrive systemd file to be more dropbox useable

STOP and READ USE THIS TEMPLATE NO EXCEPTIONS - By not using this, you waste your time, our time and really hate puppies. Please remove these two lines and that will confirm you have read them.

What is the problem you are having with rclone?

I'm looking for some help in updating my OLD Gdrive rclone systemd files to use Dropbox --flags like what to keep and what to remove :slight_smile:

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

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

DropBox

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

rclone v1.65.2
- os/version: debian 11.9 (64 bit)
- os/kernel: 5.10.0-28-amd64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.21.6
- go/linking: static
- go/tags: none

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

[dropbox]
type = dropbox
token = XXX

[dropbox-crypt]
type = crypt
remote = dropbox:/VideoServer/Twitch
password = XXX

A log from the command that you were trying to run with the -vv flag

None

Here is my current systemd file, for one of my Dropbox drives:

[Unit]
Description=RClone VFS Service
Wants=network-online.target
After=network-online.target

[Service]
Type=notify
Environment=RCLONE_CONFIG=/home/USER/.config/rclone/rclone.conf
KillMode=none
RestartSec=5
ExecStart=/usr/bin/rclone mount dropbox-crypt:drive1/ /home/USER/data/shared-drives/drive-01 \
# This is for allowing users other than the user running rclone access to the mount
--allow-other \
# Log level
--log-level INFO \
# log file
--log-file /home/USER/.config/rclone/rclone-dropbox-shared-data-01.log \
#--log-level DEBUG \
# I reduce the poll interval down to 10 seconds as this makes changes appear fast the API quotas per day are huge
--poll-interval 10s \
# This is setting the file permission on the mount to user and group have the same access and other can read
--umask 002 \
# This sets up the remote control daemon so you can issue rc commands locally
--rc \
# This is the default port it runs on
--rc-addr :7701 \
# no-auth is used as no one else uses my server and it is not a shared seedbox
--rc-no-auth \
# The local disk used for caching
--cache-dir=/home/USER/.cache/dropbox-01 \
# 
# My quota per user / per 100 seconds is 20,000 requests. This can be found in your quota section.
# This changes the sleep calls to something much lower to take advantage of the API boost.
# change the min sleep from 100ms
--drive-pacer-min-sleep 10ms \
# Changing to have the ability to burst higher
--drive-pacer-burst 200 \
# This is used for caching files to local disk for streaming OLD - full
--vfs-cache-mode full \
# This limits the cache size to the value below - 1000G
--vfs-cache-max-size 600G \
# Speed up the reading: Use fast (less accurate) fingerprints for change detection
--vfs-fast-fingerprint \
# This limits the age in the cache if the size is reached and it removes the oldest files first
--vfs-cache-max-age 9999h \
# The polling interval for increased based on there is enough buffer space
--vfs-cache-poll-interval 5m \
# Add read ahead buffer to network latency issues - 2G
--vfs-read-ahead 2G \
# This sets a per file bandwidth control and I limit this to a little bigger than my largest bitrate I'd want to play
#--bwlimit-file 32M \
# TPS LIMIT
--tpslimit 10
#MOUNTS
ExecStop=/bin/fusermount3 -uz /home/USER/data/shared-drives/drive-01
ExecStartPre=/bin/sleep 5
PostStart=/usr/bin/sudo box restart plex
ExecStartPost=/usr/bin/rclone rc vfs/refresh recursive=true --rc-addr 127.0.0.1:7701 _async=true
Restart=on-failure

[Install]
WantedBy=default.target

Remove above as it is gdrive specific.

You can replace:

with additional flag --vfs-refresh

Consensus for tpslimt for dropbox is:

--tpslimit 12 --tpslimit-burst 0

thanks i'll give that a go :slight_smile:

So this :

ExecStartPost=/usr/bin/rclone rc vfs/refresh recursive=true --rc-addr 127.0.0.1:7701 _async=true

to this:

ExecStartPost=/usr/bin/rclone rc --vfs-refresh recursive=true --rc-addr 127.0.0.1:7701 _async=true

No.

Remove this line completely.

Add --vfs-refresh to your mount command.

Then also if you do not use RC interface for anything else you can remove lines:

# This sets up the remote control daemon so you can issue rc commands locally
--rc \
# This is the default port it runs on
--rc-addr :7701 \
# no-auth is used as no one else uses my server and it is not a shared seedbox
--rc-no-auth \

changes added, thanks :slight_smile:

will these changes take longer for me to view my files in the shared-drives because now I can't browse them from winSCP

I also use mergerfs

Description = MergerFS Mount
After=rclone.service
RequiresMountsFor=/home/USER/data/local
RequiresMountsFor=/home/USER/data/shared-drives/drive-01
RequiresMountsFor=/home/USER/data/shared-drives/drive-02
RequiresMountsFor=/home/USER/data/shared-drives/drive-03
RequiresMountsFor=/home/USER/data/shared-drives/drive-04

[Service]
Type=forking

# -o rw,use_ino,allow_other,func.getattr=newest,category.action=all,category.create=ff,cache.files=partial,async_read=false,dropcacheonclose=true,threads=12
ExecStart=/usr/bin/mergerfs /home/USER/data/local:/home/USER/data/shared-drives/drive-01:/home/USER/data/shared-drives/drive-02:/home/USER/data/shared-drives/drive-03:/home/USER/data/shared-drives/drive-04: /home/USER/data/merged -o rw,use_ino,allow_other,func.getattr=newest,category.action=all,category.create=ff,cache.files=auto-full
ExecStop=/bin/fusermount3 -uz /home/USER/data/merged
Restart=on-failure

[Install]
WantedBy=default.target

I have this in the log 2024/04/14 12:51:41 NOTICE: too_many_requests/.: Too many requests or write operations. Trying again in 300 seconds.

It is normal when using shared app_id. Create your own and re-create this remote from scratch providing your own app_id/secret.

I do not have access to that dropbox, as I pay for the storage with a friend and he manage it.

This is not rclone problem then:) Unfortunately without own client_id/secret you will be throttled much more than otherwise.

Ask account owner to do this for you. There is no workaround.

How should I read this Log into the Dropbox App console with your Dropbox Account (It need not to be the same account as the Dropbox you want to access)

As it does not need to be the same acount owner or ?

Have not used it like this but it would mean that you can use any dropbox account. Try. Maybe at the end you do not need your admin access.

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