Ensim backup file fixer 2005-06-22 reviewDownload
When the Ensim web site control panel does backups, the files it creates are often corrupt
When the Ensim web site control panel does backups, the files it creates are often corrupt. The reason seems to be that the server side sends a byte of empty data ever minute or so to stop HTTP connections timing out while the backup tarball is created. The result of this is that user's can't extract files from their backup tarballs using tar - tar says the file is corrupt.
To fix these corrupt Ensim backup files, I wrote a simple tool in perl to remove these bytes of leading data. Ensim backup file fixer is a simple command line program.
Set the buffer size. This is the amount of data (in bytes) that will be read into memory before being written to the output file. It's generally a good idea to make n some exponent of 2. The default is 1048576 (2^20), which should be just fine for most people.
Print diagnostic messages while executing (on standard error).
Print a help message - syntax and option details.
By default the program writes to standard output. Using this option the user may specify an output file, f, without using shell re-direction. May be useful for heathen users of *csh who want to read debugging output, but can't re-direct stdout and stderr separatley.
Print the program description and version.
Ensim backup file fixer 2005-06-22 search tags