Advertisement
Guest User

Untitled

a guest
May 10th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.27 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. echo "1) Unmounting directories"
  4. #Unmount any directories already mounted
  5. /bin/fusermount -uz /home/plex/m/acd
  6. /bin/fusermount -uz /home/plex/m/.acd
  7. /bin/fusermount -uz /home/plex/m/.local
  8. /bin/fusermount -uz /home/plex/m/media
  9. echo "1.1) Finished unmounting 4 directories"
  10.  
  11. echo "2) Mounting Amazon Cloud Drive using rClone"
  12. #Mount ACD using rClone
  13. /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 &
  14. echo "2.1) Finished mounting Amazon Cloud Drive"
  15.  
  16. echo "3) Mounting encryption over four folders"
  17. #Mount encryption over these folders
  18. ENCFS6_CONFIG='/home/plex/m/encfs.xml' encfs --extpass="cat /home/plex/m/scripts/encfspass" /home/plex/m/.acd /home/plex/m/acd
  19. ENCFS6_CONFIG='/home/plex/m/encfs.xml' encfs --extpass="cat /home/plex/m/scripts/encfspass" /home/plex/m/.local /home/plex/m/local
  20. echo "3.1) Finished mounting encryption"
  21.  
  22. echo "4) Using union-fuse to merge local directories"
  23. #Use union-fs to merge our remote and local directories
  24. unionfs-fuse -o cow,allow_other,nonempty,sync_read /home/plex/m/local=RW:/home/plex/m/acd=RO /home/plex/m/media
  25. echo "4.1) Finished merging directories"
  26.  
  27. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement