This small guide should help you get setup with rclone v1.40 to read/write directly to a cache
mount and have Plex get notified of new tv/movies that get added to the mount by Radarr/Sonarr
- You're using rclone v1.40
- You're using Radarr & Sonarr
- If you're using docker for plex/sonarr/radrr, you must ensure the volumes attached to the containers are all the same path, i.e.:
/mnt/user/media:/media
for all 3. If not, the auto-scan will likely not work properly.
- Copy the file attached to this gist to
/etc/systemd/system
- If you're not using Docker, remove the
After=docker.service
andRequires=docker.service
- Modify the file so that your rclone remote, mount point, cache-tmp-upload-path, cache-db-path are configured for your environment. NB: the rclone mount point is your rclone
cache
remote OR your rclonecrypt
remote if using Crypt (see Step 2) - Enable the systemd daemon:
sudo systemctl daemon-reload && sudo systemctl enable rclone.service
NB: If you're using crypt, your remotes must be configured this way: remote->cache->crypt (do not do remote->crypt->cache!)
- Configure a new rclone cache remote and ensure your settings match the ones in the file below. The
cache
remote points to a regular remote, i.e.:gd:
for Google Drive (or whatever name you have for your GDrive remote) - Ignore the crypt remote
gmedia:
if you're not using crypt and just use the provided example remotegcache:
We set most of the settings during mount in the rclone.service
file, so I'd set these to the same value when configuring them using rclone config
to avoid confusion.
In Radarr or Sonarr, configure the Plex Media Server integration (steps are the same in both Radarr/Sonarr):
- Click on Settings
- Click on the Connect tab
- Click the + button to create a new connection
- Choose Plex Media Server
- Give it a name (anything you want)
- Ensure the following are set to Yes: On Download, On Upgrade, On Rename
- Set your Plex host (localhost or the name of your plex container should work here)
- Leave port to 32400
- Put your Plex.tv Username / Password
- Ensure Update Library is set to Yes
- Set SSL to No
Now when Sonarr/Radarr download, upgrade, or rename a file, it will fire an event to Plex to update that folder. Sonarr/Radarr will have direct read/write access to the mount. Any new file will get placed by rclone in the folder defined by --cache-tmp-upload-path
and get uploaded during the next interval defined by --cache-wait-time
.
There is no Step 4, that should be sufficient to get you going!