From owner-freebsd-questions Fri Jan 18 12:49: 4 2002 Delivered-To: freebsd-questions@freebsd.org Received: from smtp.gt-est.net (smtp.gt-est.net [216.18.119.250]) by hub.freebsd.org (Postfix) with ESMTP id 1CFC737B41A for ; Fri, 18 Jan 2002 12:49:01 -0800 (PST) Received: from reevescommunication.com (66-38-215-97.ip.gt-est.net [66.38.215.97]) by smtp.gt-est.net (Postfix) with ESMTP id 2286BBDB1 for ; Fri, 18 Jan 2002 15:49:00 -0500 (EST) Message-ID: <3C484401.8050809@reevescommunication.com> Date: Fri, 18 Jan 2002 15:49:21 +0000 From: Philippe Rathe User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.5) Gecko/20011027 X-Accept-Language: en-us MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: corruped files with tar to a tape Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello to all of you geeks! Maybe we will loose our backup. I use this to backup from a samba share mount with mount_smbfs to ascsi tape: cd /mnt/samba_share tar -zc some_directory The output of tar look like this : tar: file file.html shrunk by 144 bytes, padding with zeros. tar: file file2.html shrunk by 172 bytes, padding with zeros. tar did this for all files! Now that I unzip and untar it, the file is corrupted. tar -zx some_directory/file.html It has the same size of the original but the end of the files ( 5%) has been overwritten by zeros! Ok I discover this with a test: when I tar from a directory that is mount on our file server tar says that it shrunk files and pad it. Even if I use the "z" option or not. So I check if it were tar or gzip that corupt and it is not tar because: cat /dev/sa0 | gzip -dc > tape.tar and I tar the original directory on which I am testing and backuping and: - the both original tar and the one backuped were on the same size - diff output that all files were different. Can I say that the files on the tape is overwritten with zeros? cat /dev/sa0 > tape.tar.gz doesn't work but cat /dev/sa0 | gzip -dc works but the tarfile is different from original but the same size. I really don't know what to do. Thanksa a lot. Philippe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message