>Excuse me for my ignorance of this topic, but I was wondering if Amanda had
>any features for tape replication, or writing to 2 tapes at once ...

Not yet, although the new tapeio API could easily support a "duplicate"
driver.  It just takes the time for someone to write it.

>I've tried
>simply doing this with dd, but it only write the label.  ...

Dd will only copy one file at a time, although some versions have options
for doing a whole tape.  There may also be a program for copying a tape,
but it depends on your OS.

The following will probably work, although it is untested:

  tape_in=/dev/whatever  # input tape (no rewind!)
  tape_out=/dev/whatever # output tape (no rewind!)

  mt -f $tape_in rewind
  mt -f $tape_out rewind

  while dd if=$tape_in of=$tape_out bs=32k
  do
    :
  done

The basic idea is to keep calling dd until it returns an error.  Note
that it will fail if the output tape cannot hold as much as the input.

Make sure you use the no-rewind device for both input and output.

>-Mark

John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]

Reply via email to