another stupid dump question

Tim Wunder tim
Mon May 17 11:47:15 PDT 2004


On Saturday 10 May 2003 10:41 am, someone claiming to be Andrew Mathews wrote:
> 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.
>

<heavy sigh>
I don't get this at all. Either my version of dump doesn't support this, or 
I'm doing something wrong...

When I execute 
/sbin/restore -if /dev/st0 /home/
I'm immediately plopped into an interactive restore of /, which is the first 
dumped partition.
My dump script is painfully simple right now, executing the following:
/sbin/dump 0uf /dev/nst0 /
/sbin/dump 0uf /dev/nst0 /home
/sbin/dump 0uf /dev/nst0 /var

a cat of /etc/dumpdates tells me everything was dumped:
# cat /etc/dumpdates 
/dev/sda1 0 Tue May 13 01:01:00 2003
/dev/sda5 0 Tue May 13 01:03:23 2003
/dev/sda7 0 Tue May 13 02:22:31 2003

Using dump/restore version 0.4b25 

Regards, 
Tim

-- 
RedHat Psyche 8.0, stock kernel, KDE 3.1.CVS, Xfree86 4.2.1
  8:20am  up 14 days, 10:15,  0 users,  load average: 0.00, 0.00, 0.00
It's what you learn after you know it all that counts



More information about the Linux-users mailing list