Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
107
rated 0 times [  107] [ 0]  / answers: 1 / hits: 83491  / 1 Year ago, tue, february 21, 2023, 5:07:36

I’ve searched all over the internet and everybody suggests the same thing - that adding --exclude=´.*´ should exclude hidden files and folders from an rsync. It doesn’t. I´ve also tried adding a slash and/or double quotes eg. --exclude=¨.*¨ Nothing seems to work. AGH!! Would really appreciate some help.


More From » rsync

 Answers
4

Both versions you are showing are wrong. You need to use double quotes. The following works and excludes hidden files and directories:


--exclude=".*"

If you only want to exclude hidden directories:


--exclude=".*/"

[#24656] Tuesday, February 21, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
terneive

Total Points: 329
Total Questions: 117
Total Answers: 105

Location: Denmark
Member since Tue, Oct 18, 2022
2 Years ago
;