Multiple exclusions with smbclient

Stefan G. Weichinger monitor at
Thu Mar 18 21:38:02 GMT 2004

Hello, Richard,

Donnerstag, 18. März 2004, 21:03 you wrote:

RS> On Thu, 18 Mar 2004, Gerald (Jerry) Carter wrote:

>> Stefan G. Weichinger wrote:
>> | Good idea. We will do some discussion about what features
>> | we need and don't need for backups. Maybe this could even
>> | go that far that it meets the ongoing development of a
>> | new AMANDA-interface to smb-shares ...
>> I really don't want to introduce another tool that we
>> have to maintain.  Let's keep it in smbclient if at all
>> possible.
>> First law of Samba developmewnt:
>> ~    Anything that developers don't use on a
>> ~    daily basis, they break.

RS> OK, that's fine.

I understand that approach very well ;-)

RS> Any suggestions on what testing you would like to see of the changes?

RS> I have applied them to my version of head, and they build, however, I have
RS> not submitted them and not done much in the way of testing.

Basically we need to have the ability to define multiple exclusion
patterns for backing up a SMB-share.

Imagine the C$-share of a common Windows-workstation.

Noone wants to have stuff like pagefile.sys or the RECYCLER in his

Right now we can only use ONE exclusion with smbclient, so we have to
decide which one we choose, the other stuff gets right into the dumped
image or gives nasty NT_STATUS_SHARING_VIOLATION-errors and such.

People need to be able to exclude multiple items, for example:


and RE-driven stuff like





My testing of the patched smbclient will include creating various
archives with extensive usage of the -X-option.

I have to figure out the exact syntax and behavior, after that I can
go on and test its behavior when it gets started and used by AMANDA.

best regards,
Stefan G. Weichinger
mailto:monitor at

More information about the samba-technical mailing list