Sample Header Ad - 728x90

I deleted my backup.tar.gz instead of extracting it, can I restore it?

0 votes
1 answer
142 views
I created a backup with # tar -cvpzf /run/media/user/XYZ/backup.tar.gz --exclude=/run/media/user/root/mnt /run/media/user/root/ now I need the backup and when I tried to extract the tar.gz archive I accidentally deleted the backup file: #tar -xvpzf /run/media/user/XYZ/backup.tar.gz -C /run/media/user/otherDevice/ gzip: stdin: unexpected end of file tar: Child returned status 1 tar: Error is not recoverable: exiting now I got the error nearly instantly so I guess only some bits are overwritten. I still can see the file but its size is 0 Bytes. Partition type is NTFS. Can someone explain what happened and how to restore the file?
Asked by c4tz3r (1 rep)
Dec 21, 2023, 11:06 PM
Last activity: Dec 22, 2023, 03:59 PM