Alright now please take everything I have as a guideline cause I may have set it up all wrong or not in an "optimized way" but hey, it works!
Alright I also did stuff over a period so prob some stuff in stupid ways, I'm also going to assume you have your drives mounted with rclone, additionally I did not encrypt, its esentially the same just point to your encrypted folders.
create a google API key? or whatever its called, google that.
-Created a folder in appdata called "plexdrive"
-created a folder in there called "tmp"
-I copied plexdrive from starbix's plugin into the plexdrive folder, and called it "plexdrive" (additionally could just install it from plexdrive github, this was one of those things that when I started I didnt know)
-chmod -755 /mnt/user/appdata/plexdrive/plexdrive
-create a file in your plexdrive folder called "config.json" and in it put your client ID and secret from google API
{
"clientId": "ID goes here",
"clientSecret": "Client Secret goes here"
}
So you should now have a folder /mnt/user/appdata/plexdrive and inside it should be the file plexdrive and config.json and the folder tmp
then here are my mounting scripts
/mnt/user/appdata/plexdrive/plexdrive -o allow_other -c /mnt/user/appdata/plexdrive -t
and
/mnt/user/appdata/plexdrive/tmp /mnt/disks/plxdrive/ &
That should get you a working plexdrive, mine mounts to /mnt/disks/plxdrive
And here is my rclone mount for my google drive so I can access it outside of plexdrive's read only.
rclone mount --allow-other --allow-non-empty plexdrive:/ /mnt/disks/plexdrive/ &
So at this point you should have a fully working plexdrive (read only) and a read/write google drive
Add these to your SMB
[plexdrive]
path = /mnt/disks/plxdrive
comment =
browseable = yes
# Public
public = yes
writeable = yes
vfs objects =
[plexdriveRW]
path = /mnt/disks/plexdrive
comment =
browseable = yes
# Public
public = yes
writeable = yes
vfs objects =
To easily wrose your folders.
And then (if you wish) your gonna want to make a union mount so that plex will see local and cloud data as the same.
So for me I make a folder:
/mnt/user/Media/Plex/TV (this folder was empty when I started)
I created a new folder in disks
/mnt/disks/plexdriveunion/
And then I merged those 2 and my plxdrive all together
I installed starbix's union plugin but I also went to the nerdpack plugin and installed fuse that way.
unionfs -o cow,allow_other /mnt/user/Media/Plex/=RW:/mnt/disks/plxdrive/Media/Plex/=RO /mnt/disks/plexdriveunion/ &
So now your /mnt/disks/plexdriveunion folder will have some data in it.
Add SMB
[plexdriveunion]
path = /mnt/disks/plexdriveunion
comment =
browseable = yes
# Public
public = yes
writeable = yes
vfs objects =
Your /mnt/user/media/Plex/TV folder will now have a hiiden folder in it.
Point everything, plex, sonarr, etc to /mnt/disks/plexdriveunion and off you go, they will try to write to your local copy and then you simply rclone to the cloud.
I'm personally using
rclone move --transfers 10 --exclude .unionfs/** --min-age 30d /mnt/user/Media/Plex/TV/Adult plexdrive:/Media/Plex/TV/Adult
Sorry this jumps all over the place but hopefully it poitns you in the right direction, feel free to ask follow up questions.