Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

. 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
add comment

Your Answer

 
discard

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.