Optimal Setup Rclone Gsuite Plex

Hi,
I’m very new to this all and I’m struggling with my mount and copy commands.

So my mount command is about as vanilla as it gets
rclone mount --allow-other --allow-non-empty gmedia: /media/storage/gdrive &

Drive -> Cache -> Crypt is the setup. The main problem I seem to have is Plex taking hours to scan library.

The copy command is below
rclone copy /media/storage/Media/staging gmedia_upload:gseries -P
no real issue here, just wondering what I can do for better performance

Make sure to make your own Client ID/API key if you haven’t.

https://rclone.org/drive/#making-your-own-client-id

I’d remove the cache as you don’t really need it and you should see better performance.

-allow-non-empty really shouldn’t be used as it allows over mounting and bad stuff ensues usually.

Make sure you are on the latest version as well, which is 1.47.

My mount is very simple these days:

usr/bin/rclone mount gcrypt: /GD --allow-other --dir-cache-time 96h --drive-chunk-size 32M --log-level INFO --log-file /opt/rclone/logs/rclone.log --timeout 1h --umask 002 --rc

i thought cache was suppose to make library scanning better?
what is umask for and im assuming rc isnt required if i dont care about remote control

I use umask for read/write permissions to make it group accessible.
rc is for remote control and not needed if you don’t plan to do remote control.

cache was setup initially to prevent bans as it used chunk reading and it provides local chunk storage.

It’s an extra layer so it adds a little time to do that. Scanning is much faster without the cache.

wow. thats much better. thank you. did you you suggested. no cache, using basically your mount. dont suppose you have a service version of the mount?

Yes, I use a custom rclone location though so I have an environment variable for that.

[root@gemini system]# cat gmedia-rclone.service
[Unit]
Description=RClone Service
Wants=network-online.target
After=network-online.target

[Service]
Type=notify
Environment=RCLONE_CONFIG=/opt/rclone/rclone.conf

ExecStart=/usr/bin/rclone mount gcrypt: /GD \
--allow-other \
--dir-cache-time 96h \
--drive-chunk-size 32M \
--log-level INFO \
--log-file /opt/rclone/logs/rclone.log \
--timeout 1h \
--umask 002 \
--rc
ExecStop=/bin/fusermount -uz /GD
Restart=on-failure
User=felix
Group=felix

[Install]
WantedBy=multi-user.target

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