rsync exclude hidden files doesnt work!

user289455

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.

Rinzwind

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=".*/"

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Related Related

HotTag

Archive