Friday, July 27, 2012

Fixing Files Corrupted By FTP

If you've used FTP at a low level, you'll know that you need to transfer files in ASCII or BINARY mode depending on the content of the file.  (For example, a movie file is BINARY and a text document is ASCII.)  I've been backing up a server with FTP.  I forgot to set the BINARY mode on the archives that are transferred and they were corrupted as a result.  Fortunately a command-line program exists that will fix this problem: fixgzip.   It can be downloaded here:

http://www.gzip.org/fixgz.zip

2 comments: