Rsync exclude all files in dir except specific files
I found the solution.I hope this help you to not spend that much time.
first you can create a file(include.txt) which you will used in include-from and in that you can add below lines & save it:
+ index.html
+ adodb*
+ adodb/.htaccess
- *
you can then use this rsync command to backup only include this files mentioned in include.txt and exclude everything:
Blockquote
rsync -ruvv --rsh=ssh --include-from=include.txt remoteSrv:/cache/ $BACKUP_DEST