Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Need help to understand cpio and no rewind tapes Post 302221742 by khaos83_2000 on Tuesday 5th of August 2008 05:11:15 AM
Old 08-05-2008
Need help to understand cpio and no rewind tapes

SCO openserver 5r5

I only have this available to me ...

Code:
   To list the files...
  cpio -itcvB < /dev/nrct0
  
  To copy a file out
  cpio -icvdBum filename < /dev/nrct0

So cpio is to archive or "zip" files up??
and /dev/nrct0 is the tape drive ???

How can i list all the files inside the tape drive ???
Coz I have to run the command cpio -itcvB < /dev/nrct0 a lot of times to reach the end of tape. It seems that the tape is divided into blocks. It seems pretty dumb shit to me...

Why do i have to execute the command more than once ?
How can i have run a command once or do some scripting so that I don't have to run it myself?

How does cpio and the no rewind tape work together anyway....
Is it divided into blocks?


totally confused here.
 

10 More Discussions You Might Find Interesting

1. HP-UX

ignite tapes

can any1 tell me how to make ignite tapes for the HP-ux. this company said it was: "make_tape_recovery_A", but that don't work. (4 Replies)
Discussion started by: JBX
4 Replies

2. UNIX for Dummies Questions & Answers

tapes

is there a command to check unoccupied space on a tape ? AIX 3.2 (1 Reply)
Discussion started by: cubicle^dweller
1 Replies

3. UNIX for Dummies Questions & Answers

Tapes

:confused: Hello!! I am a new UNIX user, and I need to back up some files, I have some old ones and I have been trying to delete the old information with 'mt erase' but I don't be sure if it works, and 'mt resert' but the it gave a message suggesting me to use 'scsiha -r' (but the last one... (1 Reply)
Discussion started by: scs
1 Replies

4. Shell Programming and Scripting

Will cpio span tapes ?

Hi. I am very new to the unix world, although not to computers in general (i'm a DBA). We have some procedure here for backup files from the filesystem to tape, on which they chose cpio to back it up. What they do is similar to this: ls /dirname/ | cpio -ov -O/dev/ntape/tape0 But since files... (2 Replies)
Discussion started by: fidodido
2 Replies

5. UNIX for Dummies Questions & Answers

What is the function of rewind()?

What is the function of rewind()? (2 Replies)
Discussion started by: tigerkin
2 Replies

6. Programming

Problem with fgets and rewind function ..

Hello Friends, I got stuck with fgets () & rewind() function .. Please need help.. Actually I am doing a like, The function should read lines from a txt file until the function is called.. If the data from the txt file ends then it goes to the top and then again when the function is called... (1 Reply)
Discussion started by: user_prady
1 Replies

7. Solaris

vxdump with more tapes

Hi Community, I've a V440 Sun Server with 2 device tape of 72GB. I have to backup a folder of 80 GB, so I have to use 2 tapes of 72GB (144 GB); If I use vxdump command which are the options that I have to use? When the first tape finishes does the system stop the backup? Please help me... (1 Reply)
Discussion started by: Sunb3
1 Replies

8. Programming

How do I copy or rewind *argv[]

I'm working on my own pow function and I need to make a copy of *argv but I think that I am having trouble with the size of *argv and the size of any array that I make. The code below isn't working for me. and I want to accept any number no matter the size with pow -f 2 2. I was working out... (16 Replies)
Discussion started by: Errigour
16 Replies

9. AIX

Moving tapes

Hello, anybody out there that is using itdt to manage tape changes in a tape library. The help of itdt show a move subcommand but I can't get it to work. Env: AIX5.3 Dell PowerVault TL2000 tape library -> rmt1 Available 01-08-02 IBM 3580 Ultrium Tape Drive (FCP) # itdt says it finds the... (3 Replies)
Discussion started by: petervg
3 Replies

10. UNIX for Advanced & Expert Users

Cpio - input files (from list) are stored in different order inside cpio archive - why?

Due to budget constraints I have to reinvent an Enterprise backup system in a SPARC (sun4v) Solaris estate (10 & 11). (yep - reinvent wheel, fun but time consuming. Is this wise?! :confused: ) For each filesystem of interest, to try to capture a 'catalog' at the front of each cpio archive (for... (1 Reply)
Discussion started by: am115998
1 Replies
cpio(4) 						     Kernel Interfaces Manual							   cpio(4)

NAME
cpio - format of cpio archive DESCRIPTION
The header structure, when the option of is not used (see cpio(1)), is: When the option is used, the header information is described by: Longtime and Longfile are equivalent to and respectively. The contents of each file are recorded together with other items describing the file. Every instance of contains the constant 070707 (octal). The items through have meanings explained in stat(2). The length of the null-terminated path name including the null byte, is given by The last record of the archive always contains the name Directories and the trailer are recorded with equal to zero. It will not always be the case that and correspond to the results of but the values are always sufficient to tell whether two files in the archive are linked to each other. When a device special file is archived by HP-UX (using the option), contains a magic constant which is dependent upon the implementation doing the writing. flags the device file as an HP-UX 32-bit device specifier, and contains the 32-bit device specifier (see stat(2)). If the option is not present, special files are not archived or restored. Non-HPUX device special files are never restored. SEE ALSO
cpio(1), find(1), stat(2). STANDARDS CONFORMANCE
cpio(4)
All times are GMT -4. The time now is 09:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy