Google Drive with Plex and local read-only cache

That's also my tag line on LinkedIn :smiley:

I don’t do much, but I’m boring and I’m trying to get something. even if it's a headache. lol :rofl:

friends, a question, my films are at a level of 4 levels of folders inside the drive that influences something.
(slow reading of files).
example:
M:_Minha.Biblioteca\Biblioteca\Filmes\timizados
M:_Minha.Biblioteca\Biblioteca\Filmes\timizadosLeg

Makes no difference. What does is how many files and/or folders you have inside the same folder. For example, I have a folder called Movies, which has close to 12,000 subfolders. That slows things down a lot when scanning with Plex. Better to have \Movies\A\subfolders, \Movies\B\subfolders, and so on, but I'm to lazy to reorganize :slight_smile:

I got it, I saw something good that has a maximum of 10 subfolders, I'm thinking of dividing the folders too.
/movie/A/subfolders
/movie/B/subfolders

It's a good idea.

I modified my Priming. for him to stay just where I want to have an updated list on that server.

rclone rc vfs/refresh dir=_Minha.Biblioteca/Biblioteca/Filmes/Otimizados --timeout 30m
rclone rc vfs/refresh dir=_Minha.Biblioteca/Biblioteca/Filmes/OtimizadosLeg --timeout 30m
rclone rc vfs/refresh dir=_Minha.Biblioteca/Biblioteca/Series/Otimizadas --timeout 30m
rclone rc vfs/refresh dir=_Minha.Biblioteca/Biblioteca/Series/OtimizadasLege --timeout 30m

C:\Windows\system32>cd C:\rclone
{
        "result": {
                "_Minha.Biblioteca/Biblioteca/Filmes/Otimizados": "OK"
        }
}
{
        "result": {
                "_Minha.Biblioteca/Biblioteca/Filmes/OtimizadosLeg": "OK"
        }
}
{
        "result": {
                "_Minha.Biblioteca/Biblioteca/Series/Otimizadas": "OK"
        }
}
{
        "result": {
                "_Minha.Biblioteca/Biblioteca/Series/OtimizadasLege": "OK"
        }
}
Pressione qualquer tecla para continuar. . .

(Insert funny and very witty Linux joke here where folders and scanning don't matter)

1 Like

don't even mention it, I'm stubborn with this Windows. :rofl:

I'm installing a new server on Ubuntu, I would like to use rclone on plex and also share on my internal network to use on another device, which way should I follow?

ok. if you want install plex on the ubuntu server, then do that

you can copy the config file from windows machine to linux machine.

I'm going to do this, I can mount the unit and then share the webdav or http tbm samba files don't seem to work with rclone, correct?

i have shared a rclone mount over samba, i have a post about that somewhere.
let me try to find it for you.

1 Like

here it is,
*Solved* Is it possible to access my Rclone mount as a Samba share?

1 Like

very good, thank you friend.

I managed to mount the unit on ubuntu, start as a service but I can't create the cache folder. I will post my service and my mistake.

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

[Service]
Type=notify
Environment=RCLONE_CONFIG=/home/tiago/Documents/rclone/rclone.conf
KillMode=none
RestartSec=5
ExecStart=/usr/bin/rclone mount drive-tiago: /home/tiago/Documents/drive \
--allow-other \
--dir-cache-time 1000h \
--log-level INFO \
--log-file /home/tiago/Documents/rclone/rclone.log \
--poll-interval 15s \
--umask 002 \
--user-agent titiuser \
--rc \
--rc-addr :5572 \
--rc-no-auth \
--cache-dir=/cache \
--vfs-cache-mode full \
--vfs-cache-max-size 500G \
--vfs-cache-max-age 336h \
--bwlimit-file 16M
ExecStop=/bin/fusermount -uz /home/tiago/Documets/drive
ExecStartPost=/usr/bin/rclone rc vfs/refresh recursive=true --rc-addr 127.0.0.1:5572 _async=true
Restart=on-failure
User=tiago
Group=tiago

[Install]
WantedBy=multi-user.target

error.

2020/12/09 15:48:23 Failed to start remote control: start server failed: listen tcp :5572: bind: address already in use
2020/12/09 15:49:12 NOTICE: Serving remote control on http://[::]:5572/
2020/12/09 15:49:15 ERROR : Failed to create vfs cache - disabling: failed to make cache directory: make cache directory failed: mkdir /cache/vfs: permission denied

I couldn't mount it except in /home/tiago/Documents/drive

I don't know much about linux.

i am not a linux expert either but @Animosity022 is....

1 Like

Ok.

I still need to see how to do the samba on this my /drive. LOL

Done.

I changed the owner of the cache folder and it worked.

sudo chown -R tiago:tiago /cache
now I'm going to try the samba part.

I successfully managed the server with rclone + plex + samba on the internal network my cache on the SSD.

performance is great :star_struck:

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