another stupid dump question
Andrew Mathews
andrew_mathews
Mon May 17 11:47:12 PDT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Tim Wunder wrote:
| On 5/7/2003 12:00 PM, someone claiming to be Andrew Mathews wrote:
<snip>
| <script-snip>
|
| Well, this seems to work, only I haven't a clue how to restore after
| this. I was able to execute the following subsequent commands without
| error:
| # /sbin/dump 0uf /dev/nst0 /
| # /sbin/dump 0uf /dev/nst0 /var
|
| But when I try to do an interactive restore with
| # /sbin/restore -i
|
| /sbin/restore > what
| Dump date: Thu May 8 14:35:05 2003
| Dumped from: the epoch
| Level 0 dump of / on <my hostmname>:/dev/sda1
| Label: none
|
| How do I get to the part of the tape where the second dump (of /var) is
| located? 'man restore' isn't providing me enough clues :-(
| I haven't looked in detail at your script, is it logging where on the
| tape the /var dump got dumped? Do I need to manually advance the tape
| there and then /sbin/restore -i /dev/nts0?
|
| Thanks,
| Tim
Try using /sbin/restore -if /dev/st0 /dir-to-restore-to. Should be
similar output as:
[root at peanuts root]# /sbin/restore -if /dev/st0 /tmp/
restore: using scsi tape (drive_scsitape) strategy
restore: version 0.4b27 - Running single-threaded
restore: searching media for dump
srestore: preparing drive
srestore: examining media file 0
================== dump selection dialog =====================
the following dump has been found on drive 0
hostname: linus.linux-works.org
mount point: /boot
volume: /dev/hda1
session time: Thu May 8 21:00:15 2003
level: 0
session label: "linus.linux-works.org_Thursday_21:00:00"
media label: "linus.linux-works.org_Thursday_21:00:00"
file system id: cb1c66aa-15a4-41ef-8168-6ef469eb762d
session id: 54965d67-a19a-42ed-b3b2-5dbe6d470357
media id: bf64e5a2-0af3-402a-86c5-7318fd91a516
restore this dump?
1: skip
2: restore (default)
~ ->
================== dump selection dialog =====================
At this point you can choose the directory or skip it and go to the next
one. Once you get to the directory, select it and use cd, ls, add, and
extract as necessary.
- --
Andrew Mathews
- ---------------------------------------------------------------------
~ 8:19am up 5 days, 17:35, 12 users, load average: 1.02, 1.04, 1.05
- ---------------------------------------------------------------------
The wind doth taste so bitter sweet,
Like Jaspar wine and sugar,
It must have blown through someone's feet,
Like those of Caspar Weinberger.
-- P. Opus
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Netscape - http://enigmail.mozdev.org
iD8DBQE+vQ+BidHQ0m/kEssRAt7vAJ90KwZq3tF82lhglDrn4RfmbbD+mACfZPgN
pOKbOpg138wUuS2C6Od8A/U=
=MTDt
-----END PGP SIGNATURE-----
More information about the Linux-users
mailing list