Hi,
if you tried to tar a file which didn't exist, then nothing is overwritten it will only say an error. But if, what you mean is that, you first properly tared it and then made the wrong command, just untar twice
Code:
tar -xvf sample
tar -xvf sample.tar
First command will create sample.tar .
Second command will give back the original file.
-Cheers
indiajoe