CYGWIN Rsync exclude/include problem

jw schultz jw at pegasys.ws
Sat Mar 22 10:44:33 EST 2003


On Fri, Mar 21, 2003 at 12:22:15PM -0500, Mike Lavender wrote:
> 
> Command Line:
> rsync -avvvzl --stats --delete --delete-excluded --exclude-from=c:\rsync\includes.txt /cygdrive/c/ mike at puk::LaptopBackup

First, get rid of the backslashes.
Second, drop verbosity to just -vv (not -vvv).
Dont use more verbosity that you need, it just gets in the
way.  With -vv rsync will report what rule applied to each
path. Read it. Study it.  See if the rules applied are the
expected ones or not.

If you are going to generate debug messages you aught to be
reading them.

> includes.txt:
> + /Databases/    #Include /Databases & subfolders
> 
> + /Documents and Settings/     #Include /Documents and Settings & subfolders
> - /Documents and Settings/NetworkService/     #Exclude /NetworkService subfolders
> - /Documents and Settings/LocalService/     #Exclude /LocalService subfolders
> - /Documents and Settings/All Users/     #Exclude /All Users subfolders
> - /Documents and Settings/Default Users/     #Exclude /Default Users subfolders
> 
> + /Inetpub/    #Include /Inetpub & subfolders
> + /Inetpub/wwwroot/    #Include /Inetpub/wwwroot & subfolders
> - /Inetpub/*    #Exclude /files and other folders?? in Inetpub
> 
> + /Plus11/
> + /Plus11/MYOBData/
> + /Plus11/Forms/
> + /Plus11/Old*/    #Include folders that start with Old
> - /Plus11/*
> 
> + /rsync/
> 
> - *.tmp    #Exclude all *.tmp files
> - Temp/    #Exclude all Temp folders
> - UserData/    #Exclude all UserData folders
> - *.dmp
> - Temporary Internet Files/
> - cache/
> - RECYCLER/
> - Help/
> - /*     #exclude not specifically included files * folders in the root.
> 
> --
> To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html

-- 
________________________________________________________________
	J.W. Schultz            Pegasystems Technologies
	email address:		jw at pegasys.ws

		Remember Cernan and Schmitt


More information about the rsync mailing list