Sponsored Content
Full Discussion: backup with CPIO
Top Forums UNIX for Dummies Questions & Answers backup with CPIO Post 51905 by kduffin on Friday 4th of June 2004 11:59:52 PM
Old 06-05-2004
If you are just wanting to restore a single file, you can simply say:

cat <cpiofile> | cpio -id <pattern to match>

I am guessing that you want to restore the files in the directory. Thus:

cat <cpiofile> | cpio -id <directory>/*

How are you doing your backups now? In the past I've used:

find /path/to/backup | cpio -vdm /path/to/tape

Many other backup tools have appeared these days, but cpio was nice. Its features include:

- skipping bad spots on a tape
- easily backup of arbitrary listings
- better packing than tar
- ability to use multiple tapes

Cheers,

Keith
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

backup listing(cpio)

Hi i am using HPUX and i want to know wht is the command to see the listing from the tape device.. i have taken the backup using cpio -ocvB>/dev/rmt/0m while seeing the listing using cpio -itvB</dev/rmt/0m it is not showing the listing giving message -c option sd be there if i put -c... (1 Reply)
Discussion started by: Prafulla
1 Replies

2. UNIX for Dummies Questions & Answers

cpio backup to a remote device..

Hi, Needing to perform a backup of one system to the tape unit on another system. Why, well because the local tape device is stuffed and I desparately need to have a backup completed successfully sooner rather than not at all. My question is how do I set the below code to allow me to perform... (3 Replies)
Discussion started by: Cameron
3 Replies

3. 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

4. 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

5. SCO

CPIO Backup End of Media

I'm having problems getting backups working on SCO OpenServer 5.7. using the following command: find / -depth -print | cpio -ocvB -O /dev/rct0 some files are backed up then the following error is reported: Reached end of medium on output. Device /dev/rct0: Change to part 2 and... (6 Replies)
Discussion started by: RMA1
6 Replies

6. UNIX for Advanced & Expert Users

extract cpio backup on tape

Hi, I was wondering, If I take a backup using cpio to tape from UNIX, can I extract data on windows box using cpio for windows? Anybody ever do this? Thanks. (1 Reply)
Discussion started by: yonez
1 Replies

7. SCO

cpio Backup and restore to spare server fails

Our company purchased a spare HP ML350 server - identical to current one in use to act as minimal downtime replacement should the inevitable happen. After install of OS 5.0.7 and restore of cpiobackup I get this message: -: Syntax error: Hostname= $inexpected The SCO licence policy... (4 Replies)
Discussion started by: moondogi
4 Replies

8. Shell Programming and Scripting

rsync backup mode(--backup) Are there any options to remove backup folders on successful deployment?

Hi Everyone, we are running rsync with --backup mode, Are there any rsync options to remove backup folders on successful deployment? Thanks in adv. (0 Replies)
Discussion started by: MVEERA
0 Replies

9. UNIX for Dummies Questions & Answers

Remote Tape Backup Using cpio

Hi all, I've got two HP machines running HP-UX 11.31 and would like to remotely backup one server onto another server's tape unit using the cpio command. The two servers use a secured communication channel, i.e ssh. Kindly help, Koketso (1 Reply)
Discussion started by: Koketso
1 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
dxarchiver(8)						      System Manager's Manual						     dxarchiver(8)

NAME
dxarchiver - Archives and restores files to and from disk and tape devices SYNOPSIS
/usr/bin/X11/dxarchiver OPTIONS
The Archiver application accepts all of the standard X Toolkit command line options, which are documented in the OPTIONS section in the X(1X) reference page. DESCRIPTION
Use the Archiver application, dxarchiver, to: Copy and store multiple files to a single, named archive file or output device such as a tape or floppy disk Uncompress incoming archive files and compress newly created files Retrieve stored files from an archive file or device such as a tape or floppy disk Invoke the Archiver application from the CDE Application Manager from the following categories: Application Group: System_Admin System Admin Subgroup: Daily Admin FILES
Defaults that are shared by the GUI and CLI The Archiver application The Archiver help volume Directory containing Archiver application icons Application defaults file that sets the default values for the X resources Archiver message catalog Archiver online help location IDs for on-item help i18n_motif_shared_text.cat Message catalog containing application-independent messages i18n_motif_shared_text_LocIds.cat Message catalog containing application-independent location IDs for on-item help SEE ALSO
Commands: cpio(1), pax(1), tar(1), X(1X) Files: cpio(4), tar(4) System Administration dxarchiver(8)
All times are GMT -4. The time now is 10:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy