I am a newbie and recently crashed my v12.2 openSUSE and am trying to restore it from a backup tar file, backup.tar, created automatically by YaST’s backup utility (which I think is dump-0.4b43-13.2.x86_64), the day before the crash. I booted my machine into rescue mode by booting from the installation DVD. Then, as a test, I tried to use restore (the inverse of dump) to compare the contents of backup.tar with the current file system with:
restore -C -D /tmp/sda1 -f backup.tar
where /tmp/sda1 is where I’ve temporarily mounted the system particition /dev/sda1. Executing that command returns:
Checksum error 15546143635, inode 0 file (null)
restore: Tape is not a dump tape
From this, I think one or more of the following: a) I’m doing something really wrong, and don’t know what, or b) my backup file is corrupted.
Please help me understand how to restore from a dump tar file when I’ve booted into rescue mode from the DVD. Alternatively, if there is some way to diagnose and fix the problem I’ve created without needing to restore, that would great to hear. In short, the problem came from me trying to create a samba share with smbd, screwing up the configuration somehow, and when I finished configuring it and hit “OK” in yast2, something very bad happened including completely removing /bin!
Feel free to poke fun at my mistakes, as long as you leave some helpful advice! Thanks.
On 2013-09-04 23:16, geoweaser wrote:
>
> I am a newbie and recently crashed my v12.2 openSUSE and am trying to
> restore it from a backup tar file, backup.tar, created automatically by
> YaST’s backup utility
Which should be restored with yast restore utility.
I have never used it, though, so I can’t give detailed instructions.
–
Cheers / Saludos,
Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)
Thanks for the suggestion. The problem is, however, that I cannot start yast from rescue mode (it normally is in /sbin, but not in rescue mode).
On 2013-09-05 13:26, geoweaser wrote:
>
> Thanks for the suggestion. The problem is, however, that I cannot start
> yast from rescue mode (it normally is in /sbin, but not in rescue mode).
I’ll go from old memories which I do not know if they still apply. YaST
backup created a type of tar archive of modified system files, plus an
xml file for reconstruction of the system with autoyast (maybe optional).
I’m creating a test backup right now, and I don’t see a mention of the
autoyast file.
The idea of this type of backup is that on restore you install the
system yourself again, not from the backup, using the autoyast file, if
it exists, to feed the process.
When finished, then you run the restore backup process to recover
changed files from installation.
It is not a complete backup. Certainly not a bare-bones solution.
You can see the contents of the tar archive with ‘mc’.
–
Cheers / Saludos,
Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)
On 2013-09-06 14:18, Carlos E. R. wrote:
> I’m creating a test backup right now, and I don’t see a mention of the
> autoyast file.
Ok, the backup saved a file and an archive:
mine_yastbackup.xml
mine_yastbackup.tar
The .xml file is the autoyast file. Supposedly you feed that one to the
installer and it will recreate the original installation with the help
from the backup archive.
–
Cheers / Saludos,
Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)