.ecryptfs recovery
I’m experimenting with ecryptfs, a tool that uses transparant file-level encryption.
What I was wondering about is: what happens when you delete the “$HOME/.ecryptfs” directory? As it happens, the recovery is easy (as long as you have the mount passphrase safely recorded somewhere):
- Optional: move $HOME/.ecryptfs dir out of the way
- mv $HOME/.Private $HOME/.OldPrivate
- ecryptfs-setup-private
- Enter your login passphrase (to unlock the keyring)
- Enter your old mount passphrase
- Move all files from $HOME/.OldPrivate into $HOME/.Private
- ecryptfs-mount-private
And there are your files again!