Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to backup the encrypted home of a user who might be logged in at backup time. Which directories should I backup if I want to ensure that absolutely no plaintext data can be leaked? Are the following folders always encrypted?


Just want to make sure that no data leaks, as the backup destination is untrustworthy.

Edit: Yes, as Lord of Time has suggested, I'd like to know which folders and/or files I need to backup if I need to store only encrypted content in a way that allows me to recover it later with the right passphrase.

share|improve this question

From reading this by the author of ecryptfs, it sounds like you want to backup $HOME/.Private for each user.

share|improve this answer

They would only be encrypted if they were not mounted. As you soon as you mount them they are in a decrypted state and therefore plaintext is exposed. So the answer would be yes if your ecryptfs volumes are not mounted and no if they are.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.