Discussion:
bug#29790: How to extract overridden tarred file
narasimha kumar
2017-12-20 19:21:33 UTC
Permalink
Hi when I perform the tar it has tarred but after removing the original
file.i mistakanley pressed the previous command to tar then it has
overriden and size showed 45.so pls help me to extract the original or
tarred file.
#tar -cvzf server.log.tar.gz server.log
#ls -ltr-> it showed size 270mb server.log.tar.gz
And then mistakenly I pressed previous command
#tar -cvzf server.log.tar.gz server.log
It showed file is missed
#ls -ltr-> it shows size 45 server.log.tar.gz
Please provide me the solution for this
Eric Blake
2017-12-20 20:22:03 UTC
Permalink
tag 29790 notabug
thanks
Post by narasimha kumar
Hi when I perform the tar it has tarred but after removing the original
file.i mistakanley pressed the previous command to tar then it has
overriden and size showed 45.so pls help me to extract the original or
tarred file.
#tar -cvzf server.log.tar.gz server.log
#ls -ltr-> it showed size 270mb server.log.tar.gz
And then mistakenly I pressed previous command
#tar -cvzf server.log.tar.gz server.log
It showed file is missed
#ls -ltr-> it shows size 45 server.log.tar.gz
Please provide me the solution for this
You sent your question to the gzip mailing list, but gzip wasn't
responsible for your data loss. While I feel sorry for your loss,
there's not much I can do beyond pointing you to this coreutils FAQ:

https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#I-used-rm-to-remove-a-file_002e-How-can-I-get-it-back-now_003f

Meanwhile, I'm tagging this thread so that the bug-tracker doesn't keep
it open as a gzip bug.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
Loading...