Rclone command for Jellyfin

What is the problem you are having with rclone?

Is that any rclone command to reduce server space and workload when using jellyfin?
I used --vfs-cache-mode full for fast loading but it use all of my VPS space and hanging.
so i used below command and is will acturally help to my VPS?

VPS specification
Linux N-Movies-Jelly 5.15.0-112-generic
#122-Ubuntu SMP Thu May 23 07:48:21 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
2 cpu
8GB Ram
80GB SSD

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

rclone v1.67.0

  • os/version: ubuntu 22.04 (64 bit)
  • os/kernel: 5.15.0-112-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.22.4
  • go/linking: static
  • go/tags: none

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

OneDrive

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

nohup rclone mount --no-checksum --no-modtime --read-only --vfs-cache-mode full --vfs-cache-max-size 60G --allow-other --allow-non-empty -v movies: /NON/Movies & nohup rclone mount --no-checksum --no-modtime --read-only --vfs-cache-mode full --vfs-cache-max-size 60G --allow-other --allow-non-empty -v anniseries: /NON/AnniSeries & nohup rclone mount --no-checksum --no-modtime --read-only --vfs-cache-mode full --vfs-cache-max-size 60G --allow-other --allow-non-empty -v chnseries: /NON/ChnSeries & nohup rclone mount --no-checksum --no-modtime --read-only --vfs-cache-mode full --vfs-cache-max-size 60G --allow-other --allow-non-empty -v engseries: /NON/EngSeries & nohup rclone mount --no-checksum --no-modtime --read-only --vfs-cache-mode full --vfs-cache-max-size 60G --allow-other --allow-non-empty -v iniseries: /NON/IniSeries & nohup rclone mount --no-checksum --no-modtime --read-only --vfs-cache-mode full --vfs-cache-max-size 60G --allow-other --allow-non-empty -v jpnseries: /NON/JpnSeries & nohup rclone mount --no-checksum --no-modtime --read-only --vfs-cache-mode full --vfs-cache-max-size 60G --allow-other --allow-non-empty -v korseries: /NON/KorSeries & nohup rclone mount --no-checksum --no-modtime --read-only --vfs-cache-mode full --vfs-cache-max-size 60G --allow-other --allow-non-empty -v ongoing: /NON/Ongoing & nohup rclone mount --no-checksum --no-modtime --read-only --vfs-cache-mode full --vfs-cache-max-size 60G --allow-other --allow-non-empty -v thaiseries: /NON/ThaiSeries & nohup rclone mount --no-checksum --no-modtime --read-only --vfs-cache-mode full --vfs-cache-max-size 60G --allow-other --allow-non-empty -v variety: /NON/VarietyShow & nohup rclone mount --no-checksum --no-modtime --read-only --vfs-cache-mode full --vfs-cache-max-size 60G --allow-other --allow-non-empty -v mm: /NON/MM-Movies &

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

[1-main]
type = drive
scope = drive
token = XXX
team_drive = XXX
root_folder_id =

[2-hostmain]
type = drive
scope = drive
token = XXX
team_drive = XXX
root_folder_id =

[anniseries]
type = onedrive
token = XXX
drive_id = XXX
drive_type = business

[chnseries]
type = onedrive
token = XXX
drive_id = XXX
drive_type = business

[engseries]
type = onedrive
token = XXX
drive_id = XXX
drive_type = business

[iniseries]
type = onedrive
token = XXX
drive_id = XXX
drive_type = business

[jpnseries]
type = onedrive
token = XXX
drive_id = XXX
drive_type = business

[karaoke]
type = onedrive
token = XXX
drive_id = XXX
drive_type = business

[korseries]
type = onedrive
token = XXX
drive_id = XXX
drive_type = business

[mm]
type = onedrive
token = XXX
drive_id = XXX
drive_type = business

[movies]
type = onedrive
token = XXX
drive_id = XXX
drive_type = business

[ongoing]
type = onedrive
token = XXX
drive_id = XXX
drive_type = business

[thaiseries]
type = onedrive
token = XXX
drive_id = XXX
drive_type = business

[upload]
type = onedrive
token = XXX
drive_id = XXX
drive_type = business

[variety]
type = onedrive
token = XXX
drive_id = XXX
drive_type = business
### Double check the config for sensitive info before posting publicly

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

#log is not necessary

hi, perhaps create a combine remote of all the individual remotes, and then run one rclone mount command.

and can set --vfs-cache-min-free-space

1 Like

This is 11 mounts using 60 GB cache each... so you need 710 GB disk space in total.

First thing I would do is to consolidate everything into single mount using combine remote (below example for two remotes but you can add as many as you want):

[movies]
type = onedrive
token = XXX
drive_id = XXX
drive_type = business

[thaiseries]
type = onedrive
token = XXX
drive_id = XXX
drive_type = business

[AllDrives]
type = combine
upstreams = "movies=movies:" "thaiseries=thaiseries:"

and then you mount AllDrives only once:

rclone mount --no-checksum --no-modtime --read-only --vfs-cache-mode full --vfs-cache-max-size 60G --allow-other --allow-non-empty -v AllDrives: /NON/AllDrives

This way 60GB cache is shared for your all remotes.

1 Like

Can you show me with and example sir ?

@kapitainsky shared an example of a combine in the last post.

as for --vfs-cache-min-free-space, set it to whatever value you want.

and could reduce --vfs-cache-max-age to evict stale files sooner.

technically, you do not have to use the cache.
tho in practice, might not work well, as onedrive can be very slow.
to make that even worse, you are not creating and using client id for the remotes.

1 Like

Start with two remotes - to make sure that all works. Only then add more remotes. Much easier to deal with any issues first.

1 Like

Thanks sir cache will work for streamming form client sir.
it can seek more smoothly.

Thanks so much sir .this is more easire to use sir and i will try it .

1 Like

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