Here's my situation-
I have remote users with laptops who are backing up data to a central location server. The laptop clients are Windows XP, a few Vista. The backup server is Windows Server 2003 standard.
On both server and client I have installed CopSSH and cwrsync from www.itefix.no
I have constructed batch files to run either manually initiated backup transfers, or to run as scheduled tasks. This all works really well. Transfer rates are great, etc. I've set up SSH key pairs so users do not have to enter passwords, and I have an exclusion list text file that lives on the server which is pulled down and referenced anew for every transfer.
The rsync command is backing up users' My Documents folder, and in the command, I have a path exclusion to leave out /My Documents/Exclude*
I have an exclusion for file size limit, one for excluding types from a text file, and one to exclude a directory within My Docs. This directory path exclusion will not work.
I've tried many many forms of the syntax, and with ones that are obviously wrong, I get syntax errors like I expect, but versions that are correct or should work, I get no errors or failures, but the exclusion simply doesn't work. It's like the command runs properly, but then ignores itself and sends the excluded directory anyway.
I have been searching the web for several weeks now to find a solution to no avail. I've seen several others online with similar issues who've gotten it to work, but none of the applied fixes worked in my setup.............
Any thoughts or ideas? Any help is greatly appreciated.
Batch File Example, commented line is the one that fails...
"C:\unix\Bin\rsync" -avzr --delete email@example.com:/cygdrive/c/exclude.txt /cygdrive/c/exclude.txt
THIS LINE FAILS TO EXCLUDE THE DIRECTORY>> "C:\unix\Bin\rsync" -avzr --progress --exclude="/cygdrive/c/Documents and Settings/username/My Documents/Exclude/*" --exclude-from="/cygdrive/c/exclude.txt" --max-size=1.5MB-1 "/cygdrive/c/Documents and Settings/username/My Documents/" -e SSH firstname.lastname@example.org:/cygdrive/c/backup_folder