I am trying to create the rsync A directory of server1 with the directory B of server2.
Sitting in directory A of server1, I ran the following commands.
rsync -av * server2::sharename/B
but itβs interesting that it synchronizes all files and directories except .htaccess or any hidden file in directory A. Any hidden files in subdirectories are synchronized.
I also tried the following command:
rsync -av --include=".htaccess" * server2::sharename/B
but the results are the same.
Any ideas why hidden directory files are not syncing and how to fix them. I work as root user.
thank
linux unix shell wildcard rsync
Sangfroid Jan 28 '12 at 16:18 2012-01-28 16:18
source share