Advertisement
Guest User

Untitled

a guest
Nov 28th, 2015
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. == Setup ==
  2.  
  3. mkdir -p \
  4. $HOME/.cache/Amazon-Cloud-Drive/local.encrypted \
  5. $HOME/.cache/Amazon-Cloud-Drive/local.plaintext \
  6. $HOME/.cache/Amazon-Cloud-Drive/cloud.encrypted \
  7. $HOME/.cache/Amazon-Cloud-Drive/cloud.plaintext
  8.  
  9. encfs \
  10. $HOME/.cache/Amazon-Cloud-Drive/local.encrypted \
  11. $HOME/.cache/Amazon-Cloud-Drive/local.plaintext
  12.  
  13. acd_cli mount --modules="subdir,subdir=/Encrypted" \
  14. $HOME/.cache/Amazon-Cloud-Drive/cloud.encrypted
  15.  
  16. ENCFS6_CONFIG=$HOME/.cache/Amazon-Cloud-Drive/local.encrypted/.encfs6.xml encfs \
  17. $HOME/.cache/Amazon-Cloud-Drive/cloud.encrypted \
  18. $HOME/.cache/Amazon-Cloud-Drive/cloud.plaintext
  19.  
  20. unionfs-fuse -o cow \
  21. $HOME/.cache/Amazon-Cloud-Drive/local.plaintext=RW:\
  22. $HOME/.cache/Amazon-Cloud-Drive/cloud.plaintext=RO \
  23. $HOME/Cloud
  24.  
  25. == Sync ==
  26.  
  27. # Periodically run:
  28. # (will prevent uploading of key and config to cloud)
  29. acd_cli upload -x 8 --exclude-ending encfs6.xml \
  30. $HOME/.cache/Amazon-Cloud-Drive/local.encrypted/* \
  31. /Encrypted/
  32.  
  33. == Unmount ==
  34.  
  35. # Unmount everything
  36. fusermount -u $HOME/.cache/Amazon-Cloud-Drive/cloud.plaintext
  37. fusermount -u $HOME/.cache/Amazon-Cloud-Drive/cloud.encrypted
  38. fusermount -u $HOME/.cache/Amazon-Cloud-Drive/local.plaintext
  39. fusermount -u $HOME/.cache/Amazon-Cloud-Drive/local.encrypted
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement