Problem with tar file links

SANTAGATO, RALPH E (SBCSI) rs8724 at momail.sbc.com
Fri Apr 13 20:43:49 GMT 2001


Hello.  I am trying to copy an entire directory structure from a Unix box to
an NT share using a command like this:

tar -c -h -O /usr/local/sh | smbclient //ntstldls01/rs8724$ -Tx - -D chico
-U myuser%mypasswd

The problem is it chokes when it hits a file with 2 links (hard links - not
sym links).  
I am using "-h" with tar to try to force it to copy the file rather than the
link, but that doesn't seem to be helping.  

Here is what the output looks like:

tar: Removing leading `/' from archive names
added interface ip=10.160.192.44 bcast=10.160.255.255 nmask=255.255.0.0
Domain=[D07200RC] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
restore directory \chico\usr\local\sh\
restore tar file \chico\usr\local\sh\run_mqueue_in of size 27864 bytes
restore directory \chico\usr\local\sh\old\
restore tar file \chico\usr\local\sh\old\run_mqueue_in of size 26332 bytes
restore tar file \chico\usr\local\sh\old\run_mqueue_filtered of size 3370
bytes
restore tar file \chico\usr\local\sh\old\msg_archive of size 6125 bytes
restore tar file \chico\usr\local\sh\old\msgout of size 10930 bytes
restore tar file \chico\usr\local\sh\old\check_usr2 of size 11700 bytes
tar: Removing leading `/' from link names
restore tar file \chico\usr\local\sh\old\update_aliases of size 5226 bytes
restore tar file \chico\usr\local\sh\old\check_mail of size 4716 bytes
restore tar file \chico\usr\local\sh\old\traffic_rpt of size 6181 bytes
this tar file appears to contain some kind of link other than a GNUtar
Longlink 
- ignoring
Skipping \chico\usr\local\sh\old\etr30...
restore tar file \chico\usr\local\sh\old\etr30 of size 6181 bytes
checksums don't match 0 36176
abandoning restore, -1 from read tar header
Broken pipe

Do you have any idea why this isn't working, or what I can do to get it to
work?  

Any help or suggestions would be greatly appreciated!

Ralph Santagato
SBC Services
Desktop & LAN Support -
   Email Infrastructure 

This e-mail and any files transmitted with it are the property of SBC, are
confidential, and are intended solely for the use of the individual or
entity to whom this e-mail is addressed. If you are not one of the named
recipient(s) or otherwise have reason to believe that you have received this
message in error, please notify the sender at 314-235-3394 and delete this
message immediately from your computer. Any other use, retention,
dissemination, forwarding, printing, or copying of this e-mail is strictly
prohibited





More information about the samba mailing list