Joseph Del Corso wrote:
> 
> I was just curious if there was a way, and if so what
> the command line syntax (linux) was to do it, to see
> a list of the files/directories, space used, etc, by a
> dump.

You can use amtoc to parse your latest logfile:

$ amtoc be/log/log.20010214.0 
#  Server:/partition  date  level  size[Kb]
0  BE15:  20010214  -  -
1  ente:/mp3/2  20010214  1  30
2  james:/boot  20010214  1  17
3  apollo:/  20010214  1  64
[...]
33  total:on_tape  -  -  3184960
33  total:origin  -  -  3190101

> Specifically is there a way to see how much space was
> used by a dump cycle, and to see what files went into

$ amadmin be balance

 due-date  #fs   orig KB    out KB  balance
-------------------------------------------
 2/14 Wed    2   2442825   2442848   -14.9%
 2/15 Thu    1   2966448   2966464    +3.3%
 2/16 Fri    8   2659673   2630880    -8.4%
 2/17 Sat    3   2525887   2525920   -12.1%
 2/18 Sun    4   2718537   2718592    -5.3%
 2/19 Mon    1   2765636   2765632    -3.7%
 2/20 Tue    2   3663590   3663616   +27.6%
 2/21 Wed    2   3444650   3444672   +19.9%
 2/22 Thu    5   2854480   2852672    -0.7%
 2/23 Fri    5   2709900   2710016    -5.6%
-------------------------------------------
TOTAL       33  28751626  28721312  2872131  (estimated 10 runs per
dumpcycle)

> the dump.  Can I just do a mount on the tape
> devices (after putting the device in /etc/fstab) ? or
> is there some kind of mt, or other, command that will show me
> the contents of a tape?

No, you can't mount tapes. They're just read-/writeable like a terminal
(character device) but you can't read or write a random block like on a
disc (block device).
To store files and directories on them, you have to put your file system
or your subdirectory into a single data stream. That's what dump and tar
are for (tar = tape archive).

To scan the contents of a tape, you can use amrecover:

# amrecover $TAPE no-such-host

It will print the dump/tar images residing on the tape.

Reply via email to