Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

How can I exclude hidden files and folders when using Duplicity to backup my data?

I have tried --exclude '.' --exclude '.' --exclude '*.'

These exclude everything except the folders I have specified with --include

share|improve this question

. and .. are special names for this directory and this directory's parent respectively.

You probably want something like .??* as your match pattern. This pattern requires at least three characters in the file name. It should exclude all hidden files and directories. It will miss directories like .a, but I haven't run across any such directories in the wild.

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.