rsync does not copy hidden directories

Wayne Davison wayned at
Fri Sep 14 10:09:51 EST 2001

On 12 Sep 2001, Michelene Chon <mchon at> wrote:
> We are using rsync and have noticed that it fails to copy hidden
> directories.

My guess is that you're using a wildcard and your shell isn't expanding
that wildcard to include dot dirs.  For instance:

    rsync -av /home/user/* remote:/home/user

This would normally fail to include any dot dirs (unless you have your
local shell setup to include them).  If this guess is correct, the
solution is to just drop the '*' (but not the trailing slash) and let
rsync do its own directory reading (which will include dot dirs).


More information about the rsync mailing list