What is the problem you are having with rclone?
Currently I use google drive mount splitter into two remotes(1 drive 2 configurations), one remote config is called mkv (which is added flag --include ".mkv" to run the rclone), and another one is called poster(--exclude ".mkv"). My google drive's structure is like FOLDER-[MOVIE,POSTER,INFO]. The reason why I do this is to make sure that all info and posters are fully downloaded(or cache?) except for movies file so that i can use mergerfs to merge the vfs-writes mkv mount and vfs-full mount and emby can show all the posters as fast as possible without using google's API. Or to put it plainly, read posters only from the disk instead of the google drive. However, I didn't find any cached files in the root/.cache/rclone folder until i open one poster and it shows up(but only that movie's info), and although i do a library scan in emby, no posters or info are downloaded(cached), and the seemingly "cached" posters show up insanely slow like it is refetched from google when i use emby. So how can i predownload(precache) all the info and posters of a drive mount and make emby shows all the posters and info instantly??
What is your rclone version (output from rclone version
)
rclone v1.55.1
- os/type: linux
- os/arch: amd64
- go/version: go1.16.3
- go/linking: static
- go/tags: none
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
)
The services files and config are as follows.
The mkv mount:
[Unit]
Description=Rclone
AssertPathIsDirectory=/home/mkv
Requires=rclonex.service
After=rclonex.service
[Service]
Type=simple
ExecStart=/usr/bin/rclone mount mkv: /home/mkv --allow-other --allow-non-empty --vfs-cache-mode writes --umask 002 --transfers 10 --buffer-size 32M --dir-cache-time 24000h --vfs-read-chunk-size 64M --vfs-read-chunk-size-limit 1G --poll-interval 30s --filter-from /home/filtermkv.txt
ExecStop=/bin/fusermount -u /home/mkv
Restart=on-abort
User=root
[Install]
WantedBy=default.target
The poster mount:
[Unit]
Description=Rclone
AssertPathIsDirectory=/home/poster
After=network-online.target
[Service]
Type=simple
ExecStart=/usr/bin/rclone mount poster: /home/poster --allow-other --allow-non-empty --dir-cache-time 24000h --umask 002 --vfs-cache-mode full --vfs-cache-max-size 40G --bwlimit-file 10M --vfs-cache-max-age 99999h --vfs-cache-poll-interval 5m --vfs-write-back 9999999m --no-checksum --no-modtime --read-only --filter-from /home/filterposter.txt
ExecStop=/bin/fusermount -u /home/poster
Restart=on-abort
User=root
[Install]
WantedBy=default.target
The mergerfs service:
[Unit]
Description=mergerfs mount
Requires=rclonem.service
After=rclonem.service
[Service]
Type=forking
ExecStart=/usr/bin/mergerfs /home/poster:/home/mkv /home/gdrive -o rw,use_ino,allow_other,func.getattr=newest,category.action=all,category.create=ff,cache.files=auto-full,dropcacheonclose=true
KillMode=process
Restart=on-failure
[Install]
WantedBy=multi-user.target
The rclone config contents with secrets removed.
[poster]
type = drive
scope = drive.readonly
token = ***
team_drive = ****
root_folder_id =
[mkv]
type = drive
scope = drive.readonly
token = ***
team_drive = ***
root_folder_id =