Hi there people,
I’m following the tutorial @ https://github.com/dweidenfeld/plexdrive/blob/master/TUTORIAL.md and I am trying to do the following.
- mount my Google Drive under centOS Linux
- encrypt files so Google has no idea what I am doing
- I want to download files with JDownloader2 to /mnt/media and let Plex read it
- I want the files to be stored in the Google Drive encrypted and I don’t want the files to occupy space on my linux box
I created two services.
[Unit]
Description=Google Drive
AssertPathIsDirectory=/mnt/media
After=plexdrive.service
[Service]
Type=simple
ExecStart=/usr/sbin/rclone --config=/home/plex/.config/rclone/rclone.conf mount --allow-other local-crypt: /mnt/media
ExecStop=/bin/fusermount -u /mnt/media
Restart=on-abort
[Install]
WantedBy=default.target
and
[Unit]
Description=Plexdrive
AssertPathIsDirectory=/mnt/plex
After=syslog.target network.target
PropagatesReloadTo=plexunion.service plexmediaserver.service
[Service]
Type=simple
ExecStart=/usr/sbin/plexdrive mount -c /home/plex/.plexdrive/ --cache-file=/home/plex/.plexdrive/cache.bolt -v 3 -o allow_other --max-chunks=250 --refresh-interval=1m /mnt/plex
ExecStop=/bin/fusermount -uz /mnt/plex
Restart=on-failure
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3
[Install]
WantedBy=default.target
Mounting the Google drive works but when I try to start the rclone service I get following error.
rclone[5748]: 2017/08/27 13:49:10 Failed to create file system for “local-crypt:”: didn’t find section in config file
My rclone.conf file looks as follows.
[crypt]
type = crypt
remote = /mnt/plex/Plex
filename_encryption = standard
password = <pass>
password2 = <pass>
–> What am I missing?
–> Are those steps sufficient to achieve what I want?
Kind regards
Maciej