Hi,

I am using Amanda to backup several Windows 2000 servers using
smbclient. I need to exclude multiple files and directories on the
Windows servers from the backups.

If I put in the dumptype for the Windows servers:

exclude "./Directory1"

Directory1 on the root of the Windows file system is excluded from the
backup, I can see from debug files that smbclient is invoked as follows:

smbclient \\server8\D$ -U backup -E -W HOST -d0 -TXqcg - ./Directory1

I thought that if I put in the dumptype:

exclude "./Directory1 ./Directory2"

smbclient would be invoked as follows:

smbclient \\server8\D$ -U backup -E -W HOST -d0 -TXqcg - ./Directory1
./Directory2

Given that this smbclient syntax when run manually on the command line
works and has the desired effect in that it excludes both files, this I
thought would be the answer to my problem.

However, when two files are specified in the exclude directive in the
dumptype, amanda fails all backups on the samba host machine regardless
of whether the file systems are using the dumptype with the exclude
directive in. The Amanda report gives:

  localhost  //server10/D$ lev 0 FAILED [badly formatted response from
localhost]
  localhost  //server10/C$ lev 0 FAILED [badly formatted response from
localhost]
  localhost  //server8/D$ lev 0 FAILED [badly formatted response from
localhost]
  localhost  //server8/C$ lev 0 FAILED [badly formatted response from
localhost]
  localhost  /usr lev 0 FAILED [badly formatted response from localhost]
  localhost  /var lev 0 FAILED [badly formatted response from localhost]
  localhost  / lev 0 FAILED [badly formatted response from localhost]

/usr /var and / are not even using the dumptype with the exclude
directive in.

The appropriate logs are below, I have tried to keep them to a minumum,
if you need any more log output, just ask.

I cannot use 'exclude file' in the dumptype for this as there is no
exclude from file option for smbclient.

Any assistance you can offer would be very much appretiated.


Kind Regards,

Daniel Conlon
Donhost Ltd.







amdump: start at Wed Jan  9 00:00:00 GMT 2002
driver: pid 41387 executable /usr/local/libexec/driver version 2.4.2p2
driver: send-cmd time 0.063 to taper: START-TAPER 20020109
taper: pid 41388 executable taper version 2.4.2p2
changer: opening pipe to: /usr/local/libexec/chg-chio.pl -info
planner: pid 41386 executable /usr/local/libexec/planner version 2.4.2p2
planner: build: VERSION="Amanda-2.4.2p2"
planner:        BUILT_DATE="Wed Dec 19 14:03:00 GMT 2001"
planner:        BUILT_MACH="FreeBSD server3.donhost.co.uk 4.2-RELEASE
FreeBSD 4.2-RELEASE #0: Wed Dec 12 10:33:29 GMT 2001
[EMAIL PROTECTED]:/usr/src/sys/compile/SERVER3 i386"
planner:        CC="gcc"
planner: paths: bindir="/usr/local/bin" sbindir="/usr/local/sbin"
planner:        libexecdir="/usr/local/libexec" mandir="/usr/local/man"
planner:        AMANDA_TMPDIR="/tmp/amanda" AMANDA_DBGDIR="/tmp/amanda"
planner:        CONFIG_DIR="/usr/local/etc/amanda" DEV_PREFIX="/dev/"
planner:        RDEV_PREFIX="/dev/r" DUMP="/sbin/dump"
planner:        RESTORE="/sbin/restore"
planner:        SAMBA_CLIENT="/usr/local/samba/bin/smbclient"
planner:        GNUTAR="/usr/bin/tar" COMPRESS_PATH="/usr/bin/gzip"
planner:        UNCOMPRESS_PATH="/usr/bin/gzip" MAILER="/usr/bin/Mail"
planner:        listed_incr_dir="/usr/local/var/amanda/gnutar-lists"
planner: defs:  DEFAULT_SERVER="server3.donhost.co.uk"
planner:        DEFAULT_CONFIG="DailySet1"
planner:        DEFAULT_TAPE_SERVER="server3.donhost.co.uk"
planner:        DEFAULT_TAPE_DEVICE="/dev/null" HAVE_MMAP HAVE_SYSVSHM
planner:        LOCKING=POSIX_FCNTL DEBUG_CODE AMANDA_DEBUG_DAYS=4
planner:        BSD_SECURITY USE_AMANDAHOSTS CLIENT_LOGIN="amanda"
planner:        FORCE_USERID HAVE_GZIP COMPRESS_SUFFIX=".gz"
planner:        COMPRESS_FAST_OPT="--fast" COMPRESS_BEST_OPT="--best"
planner:        UNCOMPRESS_OPT="-dc"
planner: dgram_bind: socket bound to 0.0.0.0.939
READING CONF FILES...
startup took 0.013 secs

SETTING UP FOR ESTIMATES...
setting up estimates for localhost:/
setup_estimate: localhost:/: command 0, options:
    last_level 0 next_level0 0 level_days 0
    getting estimates 0 (35536) 1 (0) -1 (-1)
setting up estimates for localhost:/var
driver: started dumper0 pid 41391
driver: started dumper1 pid 41392
driver: started dumper2 pid 41393
driver: started dumper3 pid 41394
dumper: dgram_bind: socket bound to 0.0.0.0.945
dumper: pid 41392 executable dumper version 2.4.2p2, using port 945
setup_estimate: localhost:/var: command 0, options:
    last_level 0 next_level0 0 level_days 0
    getting estimates 0 (585310) 1 (0) -1 (-1)
setting up estimates for localhost:/usr
setup_estimate: localhost:/usr: command 0, options:dumper: dgram_bind:
socket bound to 0.0.0.0.944
dumper: pid 41391 executable dumper version 2.4.2p2, using port 944
dumper: dgram_bind: socket bound to 0.0.0.0.946
dumper: pid 41393 executable dumper version 2.4.2p2, using port 946
dumper: dgram_bind: socket bound to 0.0.0.0.947
dumper: pid 41394 executable dumper version 2.4.2p2, using port 947

    last_level 0 next_level0 0 level_days 0
    getting estimates 0 (616745) 1 (0) -1 (-1)
setting up estimates for localhost://server8/C$
setup_estimate: localhost://server8/C$: command 0, options:
    last_level 0 next_level0 0 level_days 0
    getting estimates 0 (1340232) 1 (0) -1 (-1)
setting up estimates for localhost://server8/D$
setup_estimate: localhost://server8/D$: command 0, options:
    last_level 1 next_level0 0 level_days 1
    getting estimates 0 (1411021) 1 (432) -1 (-1)
setting up estimates for localhost://server10/C$
setup_estimate: localhost://server10/C$: command 0, options:
    last_level 0 next_level0 0 level_days 0
    getting estimates 0 (1743632) 1 (0) -1 (-1)
setting up estimates for localhost://server10/D$
setup_estimate: localhost://server10/D$: command 0, options:
    last_level 0 next_level0 0 level_days 0
    getting estimates 0 (243889) 1 (0) -1 (-1)
setting up estimates took 0.544 secs

GETTING ESTIMATES...
got a bad message, stopped at:
----
FORMAT ERROR IN REQUEST PACKET
----

error result for host localhost disk //server10/D$: badly formatted
response from localhost
error result for host localhost disk //server10/C$: badly formatted
response from localhost
error result for host localhost disk //server8/D$: badly formatted
response from localhost
error result for host localhost disk //server8/C$: badly formatted
response from localhost
error result for host localhost disk /usr: badly formatted response from
localhost
error result for host localhost disk /var: badly formatted response from
localhost
error result for host localhost disk /: badly formatted response from
localhost
changer: got exit: 0 str: 1 30 1
changer_query: changer return was 30 1
changer_query: searchable = 0
changer_find: looking for STD002 changer is searchable = 0 
changer: opening pipe to: /usr/local/libexec/chg-chio.pl -slot current
changer: got exit: 0 str: 1 /dev/nrsa0
taper: slot 1: date 20020108 label STD001 (active tape)
changer: opening pipe to: /usr/local/libexec/chg-chio.pl -slot next
changer: got exit: 0 str: 2 /dev/nrsa0
taper: slot 2: date 20020108 label STD002 (exact label match)
taper: read label `STD002' date `20020108'
taper: wrote label `STD002' date `20020109'
getting estimates took 246.473 secs
FAILED QUEUE:
  1: localhost  //server10/D$
  2: localhost  //server10/C$
  3: localhost  //server8/D$
  4: localhost  //server8/C$
  5: localhost  /usr
  6: localhost  /var
  7: localhost  /   
DONE QUEUE:
 

ANALYZING ESTIMATES...
planner: FAILED localhost //server10/D$ 0 [badly formatted response from
localhost]
planner: FAILED localhost //server10/C$ 0 [badly formatted response from
localhost]
planner: FAILED localhost //server8/D$ 0 [badly formatted response from
localhost]
planner: FAILED localhost //server8/C$ 0 [badly formatted response from
localhost]
planner: FAILED localhost /usr 0 [badly formatted response from
localhost]
planner: FAILED localhost /var 0 [badly formatted response from
localhost]
planner: FAILED localhost / 0 [badly formatted response from localhost]







sendsize: debug 1 pid 41402 ruid 1012 euid 1012 start time Wed Jan  9
00:00:01 2002
/usr/local/libexec/sendsize: version 2.4.2p2
REQ packet is bogus: extra text at end
sendsize: pid 41402 finish time Wed Jan  9 00:00:02 2002





amandad: debug 1 pid 41400 ruid 1012 euid 1012 start time Wed Jan  9
00:00:01 2002
amandad: version 2.4.2p2
amandad: build: VERSION="Amanda-2.4.2p2"
amandad:        BUILT_DATE="Wed Dec 19 14:03:00 GMT 2001"
amandad:        BUILT_MACH="FreeBSD server3.donhost.co.uk 4.2-RELEASE
FreeBSD 4.2-RELEASE #0:
 Wed Dec 12 10:33:29 GMT 2001
[EMAIL PROTECTED]:/usr/src/sys/compile/SERVER3 i386
"
amandad:        CC="gcc"
amandad: paths: bindir="/usr/local/bin" sbindir="/usr/local/sbin"
amandad:        libexecdir="/usr/local/libexec" mandir="/usr/local/man"
amandad:        AMANDA_TMPDIR="/tmp/amanda" AMANDA_DBGDIR="/tmp/amanda"
amandad:        CONFIG_DIR="/usr/local/etc/amanda" DEV_PREFIX="/dev/"
amandad:        RDEV_PREFIX="/dev/r" DUMP="/sbin/dump"
amandad:        RESTORE="/sbin/restore"
amandad:        SAMBA_CLIENT="/usr/local/samba/bin/smbclient"
amandad:        GNUTAR="/usr/bin/tar" COMPRESS_PATH="/usr/bin/gzip"
amandad:        UNCOMPRESS_PATH="/usr/bin/gzip" MAILER="/usr/bin/Mail"
amandad:        listed_incr_dir="/usr/local/var/amanda/gnutar-lists"
amandad: defs:  DEFAULT_SERVER="server3.donhost.co.uk"
amandad:        DEFAULT_CONFIG="DailySet1"
amandad:        DEFAULT_TAPE_SERVER="server3.donhost.co.uk"
amandad:        DEFAULT_TAPE_DEVICE="/dev/null" HAVE_MMAP HAVE_SYSVSHM
amandad:        LOCKING=POSIX_FCNTL DEBUG_CODE AMANDA_DEBUG_DAYS=4
amandad:        BSD_SECURITY USE_AMANDAHOSTS CLIENT_LOGIN="amanda"
amandad:        FORCE_USERID HAVE_GZIP COMPRESS_SUFFIX=".gz"
amandad:        COMPRESS_FAST_OPT="--fast" COMPRESS_BEST_OPT="--best"
amandad:        UNCOMPRESS_OPT="-dc"
got packet:
--------
Amanda 2.4 REQ HANDLE 000-00AB0608 SEQ 1010534401
SECURITY USER amanda
SERVICE sendsize
OPTIONS maxdumps=1;hostname=localhost;
GNUTAR //server10/D$ 0 1970:1:1:0:0:0 3 exclude-file='./Directory1
./Directory2'
GNUTAR //server10/D$ 1 2002:1:8:10:43:41 3 exclude-file='./Directory1
./Directory2'
GNUTAR //server10/C$ 0 1970:1:1:0:0:0 3 exclude-file='./Directory1
./Directory2'
GNUTAR //server10/C$ 1 2002:1:8:10:59:15 3 exclude-file='./Directory1
./Directory2'
GNUTAR //server8/D$ 0 1970:1:1:0:0:0 2 exclude-file='./Directory1
./Directory2'
GNUTAR //server8/D$ 1 2002:1:8:0:4:53 2 exclude-file='./Directory1
./Directory2'
GNUTAR //server8/C$ 0 1970:1:1:0:0:0 2 exclude-file='./Directory1
./Directory2'
GNUTAR //server8/C$ 1 2002:1:8:10:51:1 2 exclude-file='./Directory1
./Directory2'
DUMP /usr 0 1970:1:1:0:0:0 1
DUMP /usr 1 2002:1:8:11:12:49 1
DUMP /var 0 1970:1:1:0:0:0 1
DUMP /var 1 2002:1:8:10:44:38 1
DUMP / 0 1970:1:1:0:0:0 1
DUMP / 1 2002:1:8:10:43:16 1
--------

sending ack:
----
Amanda 2.4 ACK HANDLE 000-00AB0608 SEQ 1010534401
----

bsd security: remote host localhost user amanda local user amanda
amandahosts security check passed
amandad: running service "/usr/local/libexec/sendsize"
amandad: sending REP packet:
----
Amanda 2.4 REP HANDLE 000-00AB0608 SEQ 1010534401
OPTIONS maxdumps=1;
FORMAT ERROR IN REQUEST PACKET
----

amandad: got packet:
----
Amanda 2.4 ACK HANDLE 000-00AB0608 SEQ 1010534401
----

amandad: pid 41400 finish time Wed Jan  9 00:00:02 2002

Reply via email to