Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 13693  / 2 Years ago, tue, june 14, 2022, 1:09:27

How can I set duplicity to exclude all hidden files and folders from backing them up, without specifying each and every one of them?


More From » duplicity

 Answers
3

A hidden file or directory starts with a dot (e.g. .bash_history, .cache/). The pattern for that is .*, so you can use the --exclude '.*' option to exclude hidden files and directories. This option must come before other --include patterns because:




A given file is excluded
by the file selection system exactly when the first matching file
selection condition specifies that the file be excluded; otherwise the
file is included.




(from man duplicity)


[#40454] Tuesday, June 14, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
avilyexplor

Total Points: 20
Total Questions: 102
Total Answers: 120

Location: Maldives
Member since Mon, Jun 21, 2021
3 Years ago
;