Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Backup software



Um, instead of:

	tar zcf - ... | dd of=$tape

why don't you:

	tar zcf $tape ...

-derek

jbk <jbk at mail2.gis.net> writes:

> I need help to access the data I've written to /dev/nht0.
> 
> The  basic format the data is written to tape is:
> 
> TAPEDEV=/dev/nht0
> WRT_TAPE="dd of=$TAPEDEV obs=126b
> 
> case
> blah)
>  LocalTar) if [ $level = F ] ; then
>      tar zcf - $3 | $WRT_TAPE
>     else
>      tar zcf - -N \"7 days ago\" $3 | $WRT_TAPE
>     fi;;
> esac
> #######################
> This is an excerpt form the backup script I've modified for
> my system.
> 
> I can use the mt command to move to the separate volumes on
> the tape:
> mt -f /dev/nht0 rewind
> mt -f /dev/nht0 fsf 3
> 
> and I would think that:
> 
> dd if=/dev/nht0 of=/var/tmp/tape3/tape.tgz ibs=126b
> 
> would copy volume 3 to tape.tgz, but dd does not even access
> the tape device but proceeds to write gibberish to tape.tgz
> to the total of tens of MB.
> 
> This was a virgin tape with no previous data on it and it
> was written to when I ran the script.
> 
> When I used the restore command with the -f /dev/nht0 option
> I got the error mssg: 'this is not a dump tape' which is
> what I half expected since I did not use dump to write the
> tape. I have read the 'dd' and 'tar' info files.
> 
> Any hints would be helpful
> 
> with eyes glazed
>     Jim Kelly-Rand
> 
> _______________________________________________
> Discuss mailing list
> Discuss at blu.org
> http://www.blu.org/mailman/listinfo/discuss

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org