Questions about exclude-file

jw schultz jw at pegasys.ws
Tue Mar 11 01:24:04 EST 2003


On Mon, Mar 10, 2003 at 07:28:38AM -0600, Max Kipness wrote:
> Is there anyway to keep rsync from reporting an error when attempting to
> sync pagefile.sys (through a samba share)? It seems like any type of
> exclusion of the file gets ignored, why is that? Anyway around it?

It could only be because your exlude patterns are wrong.
The error is probably because the file is open and therefor
locked.

> Also, of experimented with the exclude-from syntax quite a bit and
> haven't figure out how you could just backup all .doc files on a file
> system and exclude everything else.

I almost told you to check the archives but i couldn't find
it quickly so here:

rsync -blahblah --include='*/' --include='*.doc' --exclude='*'

That will create of course every single directory even if it
doesn't have a .doc file at any depth beneath it. 

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

		Remember Cernan and Schmitt


More information about the rsync mailing list