Sponsored Content
Full Discussion: cpio question
Special Forums UNIX and Linux Applications cpio question Post 302159391 by HNelson on Thursday 17th of January 2008 04:52:27 PM
Old 01-17-2008
Got it

I managed to figure it out. After creating the tape directory and trying a few different combinations of the switches I finally got it with using wildcards.

cpio -AvicdumkB -I/dev/rct0 u/prd*/MUMPS*

Mumps is the name of the file and it's extension is .DAT in the prd directory but it's .EXT in each subsequent directory so cpio will play nice with the wilcard.

Many thanks for pointing me in the right direction. I fear I would have been pulling my hair out trying to figure this out.

Hnelson
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

cpio

by mistake I deleted all the files in /usr2/symix/users/wfpsys/tpsc/ directory. full backup has taken yesterday using "CPIO" command and I am able to view the files from tape also using cpio command. but i couldn't able to restore back the files. Can you please help me immeditely by giving the... (2 Replies)
Discussion started by: wipro fluid power
2 Replies

2. UNIX for Dummies Questions & Answers

Help with cpio

Hi all, Please help me with the extraction of files from a cpio. what I mean is basically I have received a file from someone i.e rooh.cpio. this file rooh.cpio contains various files in it. I want to know how I can extract the files and copy them to a different directory . Your quick... (2 Replies)
Discussion started by: rooh
2 Replies

3. UNIX for Dummies Questions & Answers

cpio problem

Hi everyone. I'm needing some help with this. I've made some backups on the same tape using cpio. With cpio -civt < /dev/rmt/0un i could see the first backups files, but now i'm getting the next messages <<End of medum on "imput">> <<To continue, type device/file name when ready>>. I... (3 Replies)
Discussion started by: livortiz
3 Replies

4. UNIX for Advanced & Expert Users

CPIO related

i have a cpio.z file containing another cpio file . I want to view the contents of the cpio file inside . How to do it? my parent cpio file invoked with cpio -itv looks some thing like ompmum4 sbadgire> zcat 210_2122_ECP_03.cpio.Z| cpio -itv -rwxr-xr-x 1 20519 20519 761856... (1 Reply)
Discussion started by: rraajjiibb
1 Replies

5. UNIX for Dummies Questions & Answers

cpio

Hello, how can I restore files from a DAT using CPIO ? If I make : # mkdir save # cd /save # cpio -icumvdB </dev/rct0 Does the archive restore only in the directory /save ? And how can I restore a specified file from the DAT with the cpio command ? How can I know the size of the... (2 Replies)
Discussion started by: kok
2 Replies

6. HP-UX

Please help with cpio on HP-UX

Hello all ... I am an Oracle DBA that got stuck in a HP-UX SA role and need some help figuring out a UNIX problem. According to Oracle documentation, I am to issue the following command ... cpio -idcmv <file_name> However when I do, the server just hangs there and does nothing til I... (3 Replies)
Discussion started by: soestx
3 Replies

7. UNIX for Advanced & Expert Users

cpio versus cp

I am copying a file system to another one. someone suggest me use find . -print |cpio -pdmv but I think cp -r should do the same thing. Am I right? In addition, by using " find . ", I got all the file names,, why do I have to use the -print option? Thanks a lot! (1 Reply)
Discussion started by: fredao
1 Replies

8. SCO

CPIO listing from tape question...

Hi. I have this old server onto which i needed to list the content of a tape. This is a SCO box (SCO_SV 3.2 5.0.6 i386) and backup was done using cpio. #tape status status : ready beginning-of-tape soft errors : 0 hard errors : 0 underruns : 0 #dtype /dev/rct0 /dev/rct0 ... (5 Replies)
Discussion started by: Stephan
5 Replies

9. Solaris

About cpio command

i need to extract cpio file archived full path to /restore/ (not full path or fullpath under this directory ) i can't find option for cpio please help me example. i have cpio file archive /etc/* and i need to extract file to /restore #cpio -ivBcdmu < xx.cpio but data from cpio not... (3 Replies)
Discussion started by: infjustice
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
DVBACKUP(1)						      General Commands Manual						       DVBACKUP(1)

NAME
dvbackup -- Converter from arbitrary data to a DV stream SYNOPSIS
dvbackup [--version] [-n|--ntsc-mode] [-d|--decode] [-t|--verify] [-b|--set-backup-title=TITLE] [--set-picture=PPM-FILE] [-v|--ver- bose] [-p|--prefix=COUNT] [--test=COUNT] [-r|--recover] [--enable-audio] [-?|--help] [--usage] DESCRIPTION
This manual page documents briefly the dvbackup tool. This manual page was written for the Debian distribution because the original program does not have a manual page. As you probably know, current digital camcorders can save approximately 13 GB of data on those tiny DV cartridges at a speed of 3.6 MB/sec- ond. That's fast. Very fast. It's faster than most DAT streamers which only work at 1 MB/sec or less. We can not use all of the data, but 10 GB should be good enough for everyone. That's nice, but how can we use this to save data on it? And here comes the fun part: If you read the DV documentation carefully, you will notice that the AC DCT coefficients of the video data blocks (8x8 pixels in size) get a fixed amount of space in the DV data stream, but can be terminated earlier with a certain code sequence. So let's have some fun: We terminate the AC coefficients immediately leaving only the DC coefficient for a fancy penguin picture and use the rest for our backup data. Future implementations could easily add a little pic- ture showing the currently written file or something like that. Then there is the audio data, which is written uncompressed onto the tape. That means: We tell the camcorder at the beginning of each frame, that we won't use audio at all but fill the space reserved for it with data. Easy, but somewhat hacky. In fact, I don't know, if this works on every camcorder and not only on mine (a Sony VX700). Your mileage may vary. To finally bring the data on tape, you have to use an additional utility, called dvconnect, which is (hopefully soon) included into libdv. Take a look at the patch manager if it's not in already. And then it's time to rock and roll: Advantages of dvbackup over other backup technologies relatively cheap (the cheapest camcorder will be enough, but if you have already one...) the tapes are quite cheap open standard: if your streamer, aah camcorder dies you can rescue your data with any other one (except PAL/NTSC need to fit), you are not bound to a special company it's faster than many streamers and it will be more comfortable - you can use the search-index function to "jump" to a recording tapes (re)wind faster than many streamers you do not need to rewind the tape to eject it Disadvantages of dvbackup you do not get any warranty :-) Usage of the Unix client Press record on your camcorder. (Or use your favorite avc control program for this. For the VX700 this doesn't work and you have to hack something together, that uses LANC. I might publish my "solution" for this soon...) Type "find . |cpio -o -H crc |dvbackup --prefix=125 |dvconnect -s" to stream directly to your camcorder. This most likely does only work on very fast harddisks and filesystems. You might try something like "find . |cpio -o -H crc |dvbackup --prefix=125 |dvconnect -s -b 500" Alternatively, you can write the data in several parts on tape. Just go experimenting, and mail me the resulting backup scripts... Stop your camcorder and rewind. Now it's time to verify: Press play on tape ;-) Type "dvconnect |dvbackup -t" and watch for crc errors. The data corruption bug mentioned for version 0.0.1 seems to be fixed so there is no excuse in not using this little nifty program ;-) If you want to restore: Do a simple "dvconnect |dvbackup -d|cpio -imV". CPIO will also happily tell you about CRC errors. So you might want to check using cpio's archive test mode too. But keep in mind, that cpio's CRC function is not that fast! AUTHOR
This manual page was written by Robert Jordens jordens@debian.org for the Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2. On Debian systems, the full text of this license can be found in the file /usr/share/common-licenses/GPL-2. DVBACKUP(1)
All times are GMT -4. The time now is 01:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy