🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.sgi.admin
2 messages
2 total messages Started by Rafique Mahmood Wed, 16 Dec 1992 19:26
Help on cpio: how to read backup tapes with cpio command?
#23
Author: Rafique Mahmood
Date: Wed, 16 Dec 1992 19:26
26 lines
1630 bytes
We are doing backup remotely with cpio command. Our tape drive is with machine
'peach'. We do backup of machine 'backup_machine'. We have scripts to do it.
We have many systems but backup is done from one central machine. 

I don't understand shell script yet (working on it). It is very complecated. 
When I was running the bacup I got the process listing which shows :

  backup 22545 22544  0 11:53:41 ?         0:00 rsh peach -l tape dd conv=block obs=5120 of=/dev/nrst1 
  backup 22551 22545 35 11:53:41 ?         2:39 rsh peach -l tape dd conv=block obs=5120 of=/dev/nrst1 
  backup 22547 22545 18 11:53:41 ?         1:57 cpio -o 
  backup 22548 22546  0 11:53:41 ?         0:07 find /etc/aliases /etc/cshrc /etc/group /etc/hosts /etc/init.d /etc/motd /e

and some other which is our scripts.


Now, within a day or two I need to write a program which will make a listing of the
backup tapes. I looked at the cpio manuals but did not know what to do.

If any one can help me on this I will appreciate it very much. I use tar all the time 
but this is different. I loged in to 'peach' and tried 'cpio -tBi /dev/nrst1', it
didnot work.

Thanks for any info.

Rafique,
email: mahmood@lambda.msfc.nasa.gov
Re: Help on cpio: how to read backup tapes with cpio command?
#25
Author: Paul Jackson
Date: Wed, 16 Dec 1992 21:59
29 lines
1617 bytes
In article <1992Dec16.192634.19294@lambda.msfc.nasa.gov>, mahmood@lambda.msfc.nasa.gov (Rafique Mahmood) writes:
|> I need to write a program which will make a listing of the
|> backup tapes. I tried 'cpio -tBi /dev/nrst1', it did not work.

If you look at the man page for cpio carefully (do "man cpio") you
will see:

    cpio -i[BbcdmrtuvVfsSb6k] [-C bufsize] [[-I file] [-M message]] [pattern ...]

and a bit later:

    cpio -i (copy in) extracts files from the standard input

Observe that the archive or tape device is _not_ listed amongst
the expected arguments of "cpio -i", and that it expects input
instead from standard input.  This means that the following might
work better for you:

    cpio -tBi < /dev/nrst1

There may have been other questions in your posting, but I could
not quite understand what you were asking, so my apologies for not
answering what else you might be asking.

-- 

				I won't rest till it's the best ...
				Software Production Engineer
				Paul Jackson (pj@sgi.com), x1373
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads