Getting the 'hidden' .htaccess file.

Ian Skinner iskinner at cdpr.ca.gov
Fri Sep 3 09:03:55 MDT 2010


I am trying to use rsync to synchronize our pre-release staging site to our production site.

When I run the following command, it will get the other 19258 files, but it will ignore the three .htaccess files in our site.  I have searched the internet and can see that it is apparently somewhat tricky to get rsync to capture dot hidden files.  I have tried every solution I have found that I understood.  Can somebody help out this rsync newbie?

/usr/local/bin/rsync --verbose --progress --stats --compress --recursive --times --perms --links --include=".htaccess" --delete . appprod::test

This is between two Solaris servers using the latest rsync with the remote set up as a daemon on the appprod server, if that matters any.

TIA
Ian



More information about the rsync mailing list