Amanda-Users

Re: anyone used smbclient -T with the "r" option?

2003-08-18 15:55:33
Subject: Re: anyone used smbclient -T with the "r" option?
From: Jon LaBadie <jon AT jgcomp DOT com>
To: amanda-users AT amanda DOT org
Date: Mon, 18 Aug 2003 15:53:45 -0400
On Mon, Aug 18, 2003 at 09:17:47PM +0200, Gregor Ibic wrote:
> I tried the regular expresion and excluding files, and it works just fine.
> 

Samba version 3?  Or a version 2?

Here are some smbclient sample lines (the args from my wrapper log)
I've been trying.  See any problem compared with your attempts.


1. Generated by amanda, unmodified by my wrapper:
   CmdLine: \\tec\E -U administrator -E -W tec -d0 -TXqc - /bins

Properly excludes the PC file "E:\bins".
Could be ./bins or /bins in my experience.


2. Same line as above generated by amanda, modified by my wrapper to:
   CmdLine: \\tec\E -U administrator -E -W tec -d0 -TXqcr - /bins

Whether given as /bins or ./bins, it is not excluded if the "r" is
present.  Though I did not expect it to matter, I've tried different
positions for the "r", like -TrXqc, -TXrqc.  Still does not get excluded.


3. Similar line to the first, but giving the file to be excluded with
   with a wildcard.  Unmodified by my wrapper:
   CmdLine: \\tec\E -U administrator -E -W tec -d0 -TXqc - /bin?

The E:\bins file was not excluded as the wildcarding was not turned on.
Similarly for wildcards of ".", "*", and ".*".  Also, a "*" or ".*"
in front of the "/" in the file name.


4. Similar line number 3, but then modified by my wrapper to add the "r":
   CmdLine: \\tec\E -U administrator -E -W tec -d0 -TXqcr - /bin?

Again, could not get it to exclude anything.  Also tried things like *.html.


In each case where the "r" is given, there is a message in the
amdump report about the tar_re search being set:

  /-- butch      //tec/E lev 0 STRANGE
  sendbackup: start [butch://tec/E level 0]
  sendbackup: info BACKUP=/usr/sfw/bin/smbclient
  sendbackup: info RECOVER_CMD=/usr/sfw/bin/smbclient -f... -
  sendbackup: info end
  ? tar_re_search set
  | tar: dumped 20 files and directories
  | Total bytes written: 355328
  sendbackup: size 347
  sendbackup: end
  \--------

Which makes it sound like something should be trying wildcard matching.
Either "regular expression" or simple patterns as per the man page.

Any ideas?

-- 
Jon H. LaBadie                  jon AT jgcomp DOT com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)