@cayars said:
While it may look and feel like a local drive to you it’s not. It doesn’t act like one either.
This is contradicted by the earlier comment that
@garyleecn said:
if i just use drag and drop (on mac) to add movies to cloud folder directly (without adding them to local first), plex finds it immediately without any intervention…
@garyleecn have you instead of using rclone move to use rclone copy or sync followed by deleting the local files?
you are absolutely correct.
when I drag’n’drop directly to rclone mount, it automatically triggers a Plex scan.
but when I use command (both rclone upload command, and local copy/move) command from one folder to another under Plex, and also some third party app to just move them, it just won’t scan.
my set up was like Plex has two folders, A (local) and B(mount). because rclone is slow on uploading things, my thoughts were to download/add new items to A first, and run a hourly/daily script to move items from A to B. so theoretically Plex should detects a deletion and addition, therefore the library should remain the same, only file directory changes. however, the reality is Plex only detects the deletion in folder A, and then remove the movie from library without realizing it’s actually just in folder B (unless I initiate a manual scan on B).
now my plan B is, instead to move and scan folder B, I will just leave B out of Plex library. after I move the items to B, I symlink it back to A. so Plex will still read items in A, but it will be a symlink, and hopefully Plex treats them the same.
but the problem is, I don’t know how to move & symlink it back to original place without changing it’s folder structure. before I was just uploading the entire root directory so I didn’t have to worry about the folder structure. but now, I don’t know. if someone knows the command, any help is much appreciated.
@cayars said:
Can you use something like UnionFS to layer your local and remote drive? Scan, create index files, deep analysis while local then move to cloud?
unionFS is also linux only, I didn’t see any Mac versions…
@garyleecn said:
hmm weird. i now have plex scan two folders, local and cloud (where cloud is a rclone mount). the movies are added to local first, and plex finds them immediately. however, after i use “rclone move” to move files from local folder to cloud folder, plex only detects the files were removed in local, hence delete the movie. plex never automatically scan the cloud folder in this moving process.
however, if i run a manual update on the library, it will find the movies in cloud folder and add them back, also if i just use drg and drop (on mac) to add movies to cloud folder directly (without adding them to local first), plex finds it immediately without any intervention…
anyone have any ideas what’s going on here?
thanks
if you use some type of script to move the files, using rclone, at the end of the move you could initiate a plex library scan .
@garyleecn said:
hmm weird. i now have plex scan two folders, local and cloud (where cloud is a rclone mount). the movies are added to local first, and plex finds them immediately. however, after i use “rclone move” to move files from local folder to cloud folder, plex only detects the files were removed in local, hence delete the movie. plex never automatically scan the cloud folder in this moving process.
however, if i run a manual update on the library, it will find the movies in cloud folder and add them back, also if i just use drg and drop (on mac) to add movies to cloud folder directly (without adding them to local first), plex finds it immediately without any intervention…
anyone have any ideas what’s going on here?
thanks
if you use some type of script to move the files, using rclone, at the end of the move you could initiate a plex library scan .
So how should I initiate a plex scan by script?
And does it scans the entire directory or can I just let it do a partial scan?
I’m not a MAC guy, but I think you can do BASH type scripts…
#!/bin/bash
# execute your rclone command-----
rclone copy local/ GDRIVE:
#Define which Library Section to Update
$PLEXLIBRARY=1
#Create an alias for PMS Scanner
alias pms="/Applications/Plex\ Media\ Server.app/Contents/MacOS/Plex\ Media\ Scanner"
#Scan the library
pms --scan --refresh --force --section $PLEXLIBRARY