Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filename and timestamps storing #30

Open
cieplutki opened this issue Jun 26, 2017 · 3 comments
Open

filename and timestamps storing #30

cieplutki opened this issue Jun 26, 2017 · 3 comments

Comments

@cieplutki
Copy link

Hey,
is gzip able to save file name or time stams of compressed file?
I looked into options but there seem to be nothing which suggests there is no such option.

@ebiggers
Copy link
Owner

No, storing those fields is not implemented yet. I think they are rarely needed, actually. Why do you need them?

@cieplutki
Copy link
Author

I use it as archiver not only compressor and so I don't have to do this:

$ tar c file.name | gzip - > file.name.tar.gz
(...)
$ tar xf file.name.gz | gunzip

Sometimes I have to deal with damaged/recovered archives and filename at that point does make a difference. If you have yet another "anonymous" file that god one knows whats inside - there is a chance it will be "ignored" on purpose where there are tens or hundreds of similar ones recovered from file system crash. In my experience the most frequent fs crashes "produce" files that are "cut off" at the end. Whenever you try to undelete or recover raw files (without filesystem - name/directory structure) they are somewhat incomplete at the end (due to file fragmentation) and then name of file can give you a clue whether it's what you are looking for or not.

PS. Sorry for lengthy explanation, hope it is not off-topic.

@Dobatymo
Copy link

Dobatymo commented Jun 7, 2022

The name gzip suggests a gzip alternative... The original software stores filename and modtime by default. So I wouldn't say it's a rarely needed feature...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants