I am doing rsync copies between server. I'd like to exclude compressed log rotate files from the process. The files look like
*.gz *.gz.1 *.gz.2 *.gz.[0-99]
I was unable to come up with rsync exclude pattern which would correctly perform the last condition in the list above (all files having .gz. in the name). Naive
*.gz.* does not seem to work and files are copied. I also did not found out details about complex rsync exclude patterns.
Could someone point me to the right direction how to handle this case?