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? 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. Thanks - Max
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? 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. Thanks - Max
Thanks for the response. Concerning the first question of excluding pagefile.sys, yes it would indeed be in use. So you are saying that you cannot exclude a file that is in use? - Max> 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@pegasys.ws > > Remember Cernan and Schmitt > -- > To unsubscribe or change options: > http://lists.samba.org/mailman/listinfo/rsync > Before posting, > read: http://www.tuxedo.org/~esr/faqs/smart-questions.html >
On Mon, Mar 10, 2003 at 08:35:26AM -0600, Max Kipness wrote:> Thanks for the response. > > Concerning the first question of excluding pagefile.sys, yes it would > indeed be in use. So you are saying that you cannot exclude a file that > is in use?No. I was referring to the unspecified rsync error message when accessing the file. I am assuming that the file resides on a windows server and i understand they automatically lock all open files.> > - Max > > > 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.-- ________________________________________________________________ J.W. Schultz Pegasystems Technologies email address: jw@pegasys.ws Remember Cernan and Schmitt