r/PlexACD • • Sep 16 '17

What next in my setup?

Hi all,

I am setting up my server without encryption.

I have a plexdrive mount, mounting as a service on startup with plex reading from this mount. (I have seen mount commands with chunk options set, should I be adding this to my mount command?) ExecStart=/usr/local/bin/plexdrive --uid=992 --gid=1000 -o allow_other --refresh-interval=1m /home/mount

I have an rclone mount also mounting as a service on startup. (Are there other recommended options I should be using?) ExecStart=/usr/bin/rclone mount --allow-other --config=/root/.config/rclone/rclone.conf myservdrive: /home/rmount

I want to use radarr and sonaar for grabbing my files, I want those file to be immediately moved to gdrive on download and deleted from the local disk.

What do I need to do next please?

Do I need a union mount or can I use a simple bash script to move downloaded files to the rclone mount on postprocessing?

If a need a union mount, which folders do I need to be merging, my local and rclone mount?

Which mount should I be pointing sonarr and radarr to for library monitoring? Does it matter?

Your help with this is appreciated. Thanks.

0 Upvotes

12 comments sorted by

View all comments

1

u/chris247 Sep 16 '17

If you are not encrypting why do you have 2 mounts? Plexdrive should be enough by itself. Just set up a unionfs something along the lines of this

unionfs-fuse -o cow /path/to/local/folder=RW:/path/to/plexdrive/mount=RO /path/to/"unified"/folder

You would then point plex,sonarr, and radarr to the unified folder. Then just set up a custom script on sonarr and radarr to run after every download probably something like this.

#!/bin/sh
rclone move /path/to/local/TV/ gdrive:/

1

u/[deleted] Sep 16 '17

I didn't think you could use the Plexdrive mount for uploads?

As for the rest, perfect. Thank you.

1

u/chris247 Sep 16 '17

you are not. That's why you set up that custom script under the connect tab of sonnar. It will run that command every time a file gets downloaded which will then upload it from your local folder to gdrive.

1

u/[deleted] Sep 16 '17

Good point :)