|
rsync pros in here please :)
Hi,
Im having a bit of a problem excluding directories, its probably a silly error. I would appreciate some pointers.
My Rsync Script
rsync -az -r --verbose --progress --delete --ignore-errors --stats --exclude-from=/cygdrive/p/cwRsync/excludes.txt %EXCLUDES% "/cygdrive/C/tester" /cygdrive/c/poopoo/
Contained in the tester folder is a folder called wwwroot. I do not want this folder to be copied over.
Contents Of Excludes.txt
*[cC]ache*
*RECYCLE[DR]*
*.mp3
*.wma
*.rma
*.mov
*.vid
*.avi
- /cygdrive/c/tester/wwwroot/
If I add an exclude for .php files these will not be copied over so I know that the script is reading the excludes file. It just won't work for the folder.
What am I doing wrong?
Thanks,
Jon
__________________
Jon Rohan
Please note: My views are my own and not those of the company I work for.
|