Hello, im trying to setup rclone and need some help here. Would be nice if someone could help me.
I am only using Nzbget, Gdrive and Plex. I am not using Sonnar or something like that.
The Problem i am facing is, that Plex does not recognize my Movies which are stored at my Crypted Gdrive.
Short description of what I want to achieve:
- Im using nzbget to download my files
- After the Download the completed files gets renamed by filebot and stored to the folder /home/user/uploads
- I am mannualy running an upload script which i will list down. (This Script Upload the Files from /home/user/uploads to my Gdrivecrypt) (Mannualy only for testing, later i will make a Cronjob for it)
The first problem i am facing is that all the upload files/folders on my Gdrivecrypt has names like “qqej4o3bdhgfcu5ln2j9nfgfnmtbk”. When i go to Plex and select this folder, then Plex does not recognize them.
I think Plex cant read them because they are crypted.
But how can i make them visible for Plex?
Some of my Settings:
rclone.service
[Unit]
Description=Mount and cache Google drive to Uploads
After=syslog.target local-fs.target network.target
[Service]
Environment=RCLONEHOME=/home/user/.config/rclone
Environment=MOUNTTO=/home/user/plex
Environment=LOGS=/home/user/logs
Environment=UPLOADS=/home/user/uploads
Type=simple
User=user
ExecStartPre=/bin/mkdir -p ${MOUNTTO}
ExecStartPre=/bin/mkdir -p ${LOGS}
ExecStartPre=/bin/mkdir -p ${UPLOADS}
ExecStart=/usr/bin/rclone mount
–rc
–log-file ${LOGS}/rclone.log
–log-level INFO
–umask 022
–allow-non-empty
–allow-other
–fuse-flag sync_read
–tpslimit 10
–tpslimit-burst 10
–dir-cache-time=160h
–buffer-size=64M
–attr-timeout=1s
–vfs-read-chunk-size=2M
–vfs-read-chunk-size-limit=2G
–vfs-cache-max-age=5m
–vfs-cache-mode=writes
–cache-dir ${UPLOADS}
–config ${RCLONEHOME}/rclone.conf
Gdrive:/Crypted/ ${MOUNTTO}
ExecStop=/bin/fusermount -u -z ${MOUNTTO}
ExecStop=/bin/rmdir ${MOUNTTO}
Restart=always
[Install]
WantedBy=multi-user.target
End rclone.service
rclone.conf
[Gdrive]
type = drive
scope = drive
token = {“access_token”:"…
client_id =…
client_secret = …
[Gdrivecrypt]
type = crypt
remote = Gdrive:/Crypted
filename_encryption = standard
directory_name_encryption = true
password =…
password2 = …
End rclone.conf
Upload Script
#!/bin/bash
RClone Config file
RCLONE_CONFIG=/home/user/.config/rclone/rclone.conf
export RCLONE_CONFIG
LOCKFILE="/var/lock/basename $0
"
(
Wait for lock for 5 seconds
flock -x -w 5 200 || exit 1
Move older local files to the cloud
/usr/bin/rclone move /home/user/uploads/ Gdrivecrypt: -P --checkers 3 --log-file /home/user/logs/rclone_upload.log -v --tpslimit 3 --transfers 3 --drive-chunk-size 32M --exclude-from /home/user/Scripts/excludes --delete-empty-src-dirs
) 200> ${LOCKFILE}
End Upload Script