There are lots of files in /dapp/parsD/parsapp/object
. I only want to rsync
the files in this directory that match *.sql, *.pl and *.sh, but I also want to exclude 2 specific patterns in the same directory that end in .sh.
Is this possible? I am running HP-UX 11i on both source and destination. rsync
version is 3.1.0.
The below may be easier to visualize. On the dev server, the 'x' or 'X' is replaced by 'd' or 'D', and on production server, it will be 'p' or 'P'.
Include the following files:
/xapp/parsX/parsapp/object/*.sql
/xapp/parsX/parsapp/object/*.pl
/xapp/parsX/parsapp/object/*.sh
But exclude the following files:
/xapp/parsX/parsapp/object/getbackdate*autosys.sh
/xapp/parsX/parsapp/object/parssendevent*.sh