S
S
sawa42016-11-29 16:05:02
linux
sawa4, 2016-11-29 16:05:02

Backup and Restore Debian 7.8 Error Error is not recoverable: exiting now How to do it right?

Hello guys!
I make a backup according to the article https://habrahabr.ru/post/251659/
But when restoring, I get an error:

tar: Skipping to next header

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now

My backup code:
tar -cvzpf backup.tgz / --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/sys --exclude=/var

And recovery:
tar --same-owner -xvpf /usb/backup.tgz - C /mnt/
I tried to specify different extensions when backing up tar.gz, tgz is just tar - the result is the same
Who has an opinion ?, I accept everything

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xibir, 2016-11-29
@xibir

--exclude=/dev --exclude=/tmp

J
jcmvbkbc, 2016-11-29
@jcmvbkbc

tar --same-owner -xvpf /usb/backup.tgz - C /mnt/

There must be no space between - and C. With a space, it looks like you want to unpack /usb/backup.tgz followed by standard input, which gives you gzip called from tar and says "gzip: stdin: unexpected end of file".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question