Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- echo "1) Unmounting directories"
- #Unmount any directories already mounted
- /bin/fusermount -uz /home/plex/m/acd
- /bin/fusermount -uz /home/plex/m/.acd
- /bin/fusermount -uz /home/plex/m/.local
- /bin/fusermount -uz /home/plex/m/media
- echo "1.1) Finished unmounting 4 directories"
- echo "2) Mounting Amazon Cloud Drive using rClone"
- #Mount ACD using rClone
- /usr/sbin/rclone mount --read-only --allow-other --acd-templink-threshold 0 --stats 60s --buffer-size 1G --timeout 5s --contimeout 5s -v --log-file=/home/plex/Documents/mount_log.log acd:plex /home/plex/m/.acd &
- echo "2.1) Finished mounting Amazon Cloud Drive"
- echo "3) Mounting encryption over four folders"
- #Mount encryption over these folders
- ENCFS6_CONFIG='/home/plex/m/encfs.xml' encfs --extpass="cat /home/plex/m/scripts/encfspass" /home/plex/m/.acd /home/plex/m/acd
- ENCFS6_CONFIG='/home/plex/m/encfs.xml' encfs --extpass="cat /home/plex/m/scripts/encfspass" /home/plex/m/.local /home/plex/m/local
- echo "3.1) Finished mounting encryption"
- echo "4) Using union-fuse to merge local directories"
- #Use union-fs to merge our remote and local directories
- unionfs-fuse -o cow,allow_other,nonempty,sync_read /home/plex/m/local=RW:/home/plex/m/acd=RO /home/plex/m/media
- echo "4.1) Finished merging directories"
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement