Sample Header Ad - 728x90

Tar archive overwrote original file

1 vote
0 answers
137 views
I was compressing a rosbag file using tar when I mistakenly used the same original file name for the the archive name and had it overwritten by the output archive , the compressed archive size is very small compared to the expected output had I used another name e.g., file.tar.xz. When I extract the archive , I get a file of type "STL 3D model (binary) (model/x.stl-binary)" instead of the original bag file of type "Binary (application/octet-stream)". The file size is the same but the format is different. Is there a way to retrieve the original file or is this irreversible ? kindly find below the commands used to compress then extract the file. tar -cJf tar -xf any help would be much appreciated , thanks in advance.
Asked by Amr (11 rep)
May 20, 2021, 10:35 AM
Last activity: May 20, 2021, 10:42 AM