Linux/gocryptfs: Difference between revisions

From Wiki
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
</pre>
</pre>
</blockquote>
</blockquote>




Line 24: Line 22:
gocryptfs -reverse /home/joe /home/joe.crypt
gocryptfs -reverse /home/joe /home/joe.crypt
fusermount -u plain   
fusermount -u plain   
-> then rsync/rcloud /home/joe.crypt to insecure cloud storage
-> then rsync/rclone /home/joe.crypt to insecure cloud storage
</pre>
</pre>
</blockquote>
</blockquote>

Latest revision as of 12:22, 22 December 2017

Forward mode

  • files are always encrypted, become decrypted when mounting
mkdir encrypteddir
mkdir plaindir
gocryptfs --init encrypteddir
gocryptfs encrypteddir plaindir        
fusermount -u plaindir     


reverse mode

  • files are always decrypted, become encrypted when mounting
  • good for cloud backup syncing
mkdir /home/joe.crypt
gocryptfs -init -reverse /home/joe
gocryptfs -reverse /home/joe /home/joe.crypt
fusermount -u plain   
-> then rsync/rclone /home/joe.crypt to insecure cloud storage