I'm trying to set up an rsync that excludes all .* files except for .htaccess but unfortunately, this doesn't work:
rsync -avP --exclude=".*" --include="./.htaccess" ./. user@server:/dir
Is it possible to somehow exclude general exclude rules?