Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- == Setup ==
- mkdir -p \
- $HOME/.cache/Amazon-Cloud-Drive/local.encrypted \
- $HOME/.cache/Amazon-Cloud-Drive/local.plaintext \
- $HOME/.cache/Amazon-Cloud-Drive/cloud.encrypted \
- $HOME/.cache/Amazon-Cloud-Drive/cloud.plaintext
- encfs \
- $HOME/.cache/Amazon-Cloud-Drive/local.encrypted \
- $HOME/.cache/Amazon-Cloud-Drive/local.plaintext
- acd_cli mount --modules="subdir,subdir=/Encrypted" \
- $HOME/.cache/Amazon-Cloud-Drive/cloud.encrypted
- ENCFS6_CONFIG=$HOME/.cache/Amazon-Cloud-Drive/local.encrypted/.encfs6.xml encfs \
- $HOME/.cache/Amazon-Cloud-Drive/cloud.encrypted \
- $HOME/.cache/Amazon-Cloud-Drive/cloud.plaintext
- unionfs-fuse -o cow \
- $HOME/.cache/Amazon-Cloud-Drive/local.plaintext=RW:\
- $HOME/.cache/Amazon-Cloud-Drive/cloud.plaintext=RO \
- $HOME/Cloud
- == Sync ==
- # Periodically run:
- # (will prevent uploading of key and config to cloud)
- acd_cli upload -x 8 --exclude-ending encfs6.xml \
- $HOME/.cache/Amazon-Cloud-Drive/local.encrypted/* \
- /Encrypted/
- == Unmount ==
- # Unmount everything
- fusermount -u $HOME/.cache/Amazon-Cloud-Drive/cloud.plaintext
- fusermount -u $HOME/.cache/Amazon-Cloud-Drive/cloud.encrypted
- fusermount -u $HOME/.cache/Amazon-Cloud-Drive/local.plaintext
- fusermount -u $HOME/.cache/Amazon-Cloud-Drive/local.encrypted
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement