I want to exclude one special hidden file in just one special folder.
The command I used is:
rsync -a --delete                                 \
  --exclude='/absolute/path/to/webpage/folder1'   \
  --exclude='/absolute/path/to/webpage/backups'   \
  --exclude='/absolute/path/to/webpage/.htaccess' \
  /absolute/path/to/webpage/                      \
  /absolute/path/to/copy_of_webpage &>/dev/null
rsync always overwrites my .htaccess.
Also I want to keep my .htpasswd and I thought about using wildcards like:
rsync -a --delete                               \
  --exclude='/absolute/path/to/webpage/folder1' \
  --exclude='/absolute/path/to/webpage/backups' \
  --exclude='/absolute/path/to/webpage/.ht*'    \
  /absolute/path/to/webpage/                    \
  /absolute/path/to/copy_of_webpage &>/dev/null
But that doesn't work either.
                        
You could exclude all
.htaccesswith--exclude '.htaccess'