From owner-freebsd-questions Thu Mar 18 18:39:40 1999 Delivered-To: freebsd-questions@freebsd.org Received: from alpha.comkey.com.au (alpha.comkey.com.au [203.9.152.215]) by hub.freebsd.org (Postfix) with SMTP id DB8121544D for ; Thu, 18 Mar 1999 18:39:32 -0800 (PST) (envelope-from gjb@comkey.com.au) Received: (qmail 16637 invoked by uid 1001); 19 Mar 1999 02:18:28 -0000 Message-ID: <19990319021828.16636.qmail@alpha.comkey.com.au> X-Posted-By: GBA-Post 1.04 06-Feb-1999 X-PGP-Fingerprint: 5A91 6942 8CEA 9DAB B95B C249 1CE1 493B 2B5A CE30 Date: Fri, 19 Mar 1999 12:18:28 +1000 From: Greg Black To: Karl Pielorz Cc: Oscar Bonilla , freebsd-questions@FreeBSD.ORG Subject: Re: tar damaged (not related to FreeBSD :) References: <19990318094245.A43680@fisicc-ufm.edu> <19990318210301.15314.qmail@alpha.comkey.com.au> <36F17BF2.1319F9A2@tdx.co.uk> In-reply-to: <36F17BF2.1319F9A2@tdx.co.uk> of Thu, 18 Mar 1999 22:19:30 GMT Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > does anyone know of any tricks to repair a file damaged by an ASCII ftp > > > transfer? > > > > > > [...] > > > > > > is there any way to reconstruct the files? > > > > No. You'll have to use your backups. > > Isn't this similar to when Netscape's browser downloads a binary file in > 'text' mode? - If it is, you can get utilities (e.g. 'winuncook') which "fix" > the file again... > > Maybe it is possible? - Or at least worth looking at :-) - You could probably > setup a small 'test.tgz' and deliberately put it through the ASCII ftp to see > if you can put it back together again at the other side? > > Infact, I just did it here! - I copied a Windows NT executable into a .tgz, > sent it through an ASCII transfer, tried unzipping it (it fails), run it > through Winuncook, try unzipping it - it works, then run the original .EXE and > it worked... :-) - so it would seem possible... Yes, if there are no backups, it would be worth trying this solution -- but backups are better. That said, I can promise that there will be lots of files that, once corrupted in this way, cannot be restored automatically. So the results cannot be guaranteed. But if it works, then go for it. -- Greg Black To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message