I was using smbtar to test backing up an NT server, everything works fine except that for quite a lot of the files it has an error downloading them(probably 2/3 of them actually). All it says is : Error reading file \dir\dir\file. Got 0 bytes Didn't get entire file. size=533, nread=0 I could see this happening if the file were opened exclusively such as the paging file, but to my knowledge the files are not opened at all, and I can copy them from the NT Server to another NT WKS. I do not believe size to be the problem because it ranges from several bytes to several megs. I am root on the linux box giving smbtar the admin acct/passwd and taring to a file not a tape device. Any help would be great, if anyone wants a log snip from the tar just ask and I will email it to ya to inspect. Thanks, Jim Crilly JCrilly@msa.com
Steve thanks for answering, especially in your condition:-)
I _do_ understand you perfectly. But what you describe is not the case
here, in fact on purpose I redirect 2>/dev/null as well.
I reckon it's the fact that in the tar sequence, just like the one you
give, one adds the 'B' option on both sides especially in networked copy
operations.
thus ' tar cBf - * | (cd /foo/bar; tar xBf -)'
smbtar (or I should say smbclient) doesn't seem to support it.
Frans
Steve Williams wrote:
> Hi,
>
> I have seen this before with just regular tar.
>
> POSSIBLY, the problem is such.. If you don't understand what I
> describe, let me know, I am real tired & it's late.
>
> are any of your options to smbtar causing "information" to be
> output to the screen? If so, this "stuff" gets mixed in with the
> actual contents of the tar file ( on standard out as well ), and
> causes the extract to fail.
>
> To duplicate it with regular tar, try..
>
> tar -cvf - . 2>&1 | ( cd /xxx/yyy; tar -xvf - )
>
> ( most "tar" programs display "stuff" on standard error
these days,
> but years ago, they used standard out.
>
> Just a thought...
>
> --
> Steve Williams, Calgary, Alberta, Canada
> Genie Computer Systems Inc.
> steve@genie96.com
>
> "A man doesn't begin to attain wisdom until he recognizes that he
is
> no longer indispensable."
> - Admiral Richard E. Byrd ( 1888-1957 )
--
Kind Regards / Vriendelijke Groeten,
Frans Stekelenburg, gjs@acriter.com
Acriter, Intranet Facility Services (IFS)
Postbus 320, 3990 GC Houten, the Netherlands * Bezoek/Visit:
Kokermolen 6, 3994 DH
Phone: +31 (0)30 6344010 Fax: 6444011 * For Information:
info@acriter.com
Can someone look at my smbtar session below and tell me what is wrong?
I have Redhat 7.3 with Samba 2.2.5 installed from source.
I am trying to use smbtar to backup my NT server and am testing with a 225MB
share its going really slow on my 100Mbps network.
Also....Why does smbtar try to look at /etc/samba/smb.conf?
My smb.conf is at /usr/local/samba/lib/smb.conf.
Thanks for any comments on my problem.
----------------------------------------------------------------------------
-----------------------------------------
[root@yamaha bin]# ./smbtar -s 192.168.2.50 -p admin -x TestShare -u
administrator -v -t /usr/local/samba/lib/back/test.tar
server is 192.168.2.50
share is TestShare\\
tar args is
tape is /usr/local/samba/lib/back/test.tar
blocksize is
params.c:OpenConfFile() - Unable to open configuration file
"/etc/samba/smb.conf":
No such file or directory
Can't load /etc/samba/smb.conf - run testparm to debug it
added interface ip=192.168.2.100 bcast=192.168.2.255 nmask=255.255.255.0
tarmode is now full, system, hidden, noreset, verbose
session request to 192.168.2.50 failed (Called name not present)
session request to 192 failed (Called name not present)
Domain=[XXXX] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
45309979 ( 390.3 kb/s) \Backup5-17-02clear.log