Created
May 7, 2017 22:31
-
-
Save anonymous/219cefce9dd9d5cb8c33bbf63d67df0e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### systemd script (/etc/systemd/system/plexdrive.service): | |
[Unit] | |
Description=Plexdrive | |
AssertPathIsDirectory=/media/plexdrive/ | |
After=network-online.target | |
[Service] | |
Type=simple | |
ExecStart=/usr/bin/plexdrive -fuse-options allow_other -log-level 2 /media/plexdrive/ | |
ExecStop=/bin/fusermount -u /media/plexdrive/ | |
Restart=on-abort | |
[Install] | |
WantedBy=default.target | |
#### Plex Drive in RClone for decrypt | |
[plexdrive] | |
type = crypt | |
remote = /media/plexdrive/Media | |
filename_encryption = standard | |
password = hunter2 | |
password2 = hunter3 | |
#### Putting everything together | |
#Mount drive with plexdrive (using systemd from the git page): | |
sudo systemctl start plexdrive | |
#Point a rclone crypt remote to the mountpoint of plexdrive | |
/usr/bin/rclone mount --read-only --allow-non-empty --allow-other --buffer-size 500M -v --log-file="$log" plexdrive:/ /media/plexdrive-crypt/ & | |
#Union to have a writable directory for plex metadata | |
unionfs-fuse -o cow,allow_other,direct_io,nonempty,auto_cache,sync_read /media/local=RW:/media/plexdrive-crypt=RO /media/plexlib | |
#Point Plex Media Server to /media/plexlib | |
#Scan and watch the wonder! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment