I usually don't do this right, so posting here for some help before I try it. What I want to do is rsync all files from a folder that start with wedding (not case sensitive as it could be wedding, Wedding, WEDDING, etc) and put them into a folder on another server with the same file name. For the example, all the jpg's are in /data/pics on the box i'm running this from, and i want to put them into /data/photos/weddings/2011 on 10.1.2.3. I think the command should look something like this, but i'm not sure how to do the case insensitive stuff or if i'm doing anything else wrong. rsync and file masks aren't my thing yet
rsync -r -a -z -p -v -e ssh /data/pics/wedding*.jpg username@10.1.2.3:/data/photos/weddings/2011/