Xref: utzoo comp.unix.questions:27774 comp.unix.programmer:782 Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!att!tut.cis.ohio-state.edu!cs.utexas.edu!wuarchive!rex!ames!amdahl!netcom!bobb From: bobb@netcom.UUCP (Bob Beaulieu) Newsgroups: comp.unix.questions,comp.unix.programmer Subject: help with "mt" and "dd" Keywords: archiving Message-ID: <19778@netcom.UUCP> Date: 1 Jan 91 06:10:07 GMT Followup-To: comp.unix.questions Organization: Netcom- The Bay Area's Public Access Unix System {408 241-9760 guest} Lines: 43 I would like to be able to write multiple archives (probably tar'd files) to a single tape. I am using a Pyramid M/120 at 4.51. Let say I have 2 tar'd files: file_one.tar file_two.tar Assuming I have the proper tape and drive shouldn't I be able to do this: TAPE=/dev/rmt/Q120-0 mt -f $TAPE rew dd if=file_one.tar of=$TAPE bs=5120 mt -f $TAPE append dd if=file_two.tar of=$TAPE bs=5120 Now when I try to get data from the tape, its not working. Can someone tell me what I'm doing wrong? TAPE=/dev/rmt/Q120-0 mt -f $TAPE rew dd if=$TAPE of=recovered_file_one.tar mt -f $TAPE eof dd if=$TAPE of=recovered_file_two.tar I am always able to recover the last file put on tape, I seem to be writing over the previous archive. Any help would be greatly appreciated... Thanks bobb -- o\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\o o Bob Beaulieu o o San Jose, CA. o o (408) 723-0556 o o uunet!apple!netcom!bobb o o\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\o