Hey everyone
Long time reader of this forum
I've got some time to myself and have decided to learn abit about docker and build a newer plex rclone configuration (The current one is abit dated)
I'm abit stuck with the rclone union mount.
So far
I've managed to get my google drive mounted and working and also my encrypted mount working.
However, what I want/need to do now is set up a local writeable folder to be mounted over the google drive.
**Google Mount
docker run --rm \
--name gdrive \
--volume ~/.config/rclone:/config/rclone \
--volume ~/data:/data:shared \
--user $(id -u):$(id -g) \
--volume /etc/passwd:/etc/passwd:ro --volume /etc/group:/etc/group:ro \
--device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined \
rclone/rclone \
mount gdrive: /data/gdrive --size-only --allow-non-empty &
**The readable version of my clone encrypted folder
docker run --rm \
--name gcrypt \
--volume ~/.config/rclone:/config/rclone \
--volume ~/data:/data:shared \
--user $(id -u):$(id -g) \
--volume /etc/passwd:/etc/passwd:ro --volume /etc/group:/etc/group:ro \
--device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined \
rclone/rclone \
mount gcrypt: /data/ngdrive --fast-list --allow-non-empty &
**My attempt at a union config (Container runs but I can't see files)
docker run --rm \
--name media \
--volume ~/.config/rclone:/config/rclone \
--volume ~/data:/data:shared\
--user $(id -u):$(id -g) \
--volume /etc/passwd:/etc/passwd:ro --volume /etc/group:/etc/group:ro \
--device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined \
rclone/rclone \
mount media: /data/media --fast-list --allow-non-empty &
I believe I might not have set up the union mount correctly.
[gdrive]
type = drive
client_id = --------------
client_secret = -----------
scope = drive
root_folder_id = 0ABUCQGicMIYtUk9PVA
service_account_file =
token = ---------
use_trash = false
[gcrypt]
type = crypt
remote = gdrive:secure
filename_encryption = standard
directory_name_encryption = true
password = not the real pw
password2 = as above
(Porb wrong)
[media]
type = union
remotes = /home/plex/data/ngdrive /home/plex/data/local
Thanks in advance for any help - I was suing unionsfs before but the hidden files folder are doing my head in lol
I can use mergerfs if that is "Better" however the one-stop-shop solution is very tidy!
(I assume I might have to use remotes in this config of union mount however I'm not a 100% sure how local disk ones work)
*edits for formatting and spelling etc