Rob, this is strange for two reasons. First, I tried the command, and it
did not do what you said. It created a legite tar file, and did not rename
my test.txt file to test.txt.gz. Second, if it did actually gzip the text
files, you still ought to be able to view them with a web browser because
I believe Apache will server gzipped files, and the browser will decompress
them on the fly. I could be mistaken here.
It looks as if your solution is a deductive one. Did you try to vi your
text files that had the gz extension added. In other words, is it still the
same file?
Here is a start at a solution if it is the same file with just a different
extension.
find . -name \*.txt.gz -exec mv {} \;
Find will replace the {} with the name of the file, but you have to figure out
a way to replace {} with the old and then the new name. Check the list
archive for one liners, and one of them with an embedded perl command on find
should be a start.
brian
On Fri, Apr 14, 2000 at 06:30:28PM -0700, Rob Wilbanks wrote:
> I ran
>
> $ tar -cvzf web_site_backup.tar.gz cgi-bin httpd
>
> to backup my web site and it created the file web_site_backup.tar.gz. But
> it also put a gz extension on all text files and they are no longer readable
> text files. Anyone seen this or know how to remedy it? I don't want to
> restore the tar.gz backup unless I know there is no hope for my current
> files.
-- Brian Lavender http://www.brie.com/brian/ ********************************************************** * Sacramento Linux Users Group Mailing List * * Unsubscribe: Send a message to majordomo@saclug.org * With 'unsubscribe lug-nuts' in the body * * http://www.saclug.org
This archive was generated by hypermail 2b29 : Sun Apr 16 2000 - 23:09:02 PDT