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
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
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
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
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
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
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
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
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
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
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
LEARN ABOUT DEBIAN
bootcdbackup
BOOTCDBACKUP(1) bootcd utils BOOTCDBACKUP(1)
NAME
bootcdbackup - create a bootable offline backup of a unix system
SYNOPSIS
bootcdbackup [-i] [-v] [-s] [-c <config directory>] [-url <url] [-nomount] [-2diskconf <file>] <dev> <name> <builddir>
DESCRIPTION
bootcdbackup creates a offline backup from a installed system. You need a running bootcd to boot the system with. This CD/DVD is booted on
the system and bootcdbackup creates a bootable CD/DVD with the bootcd kernel and the backup disk as tar-file.
To restore or clone the system, boot the CD/DVD image and install it with bootcd2disk -c <name> on the system.
bootcdbackup can try to discover the disk partition by searching for fstab on the given partition. A other way to backup the partition ta-
ble is the program bootcdmk2diskconf which creates a configuration file on a running system.
OPTIONS
-i The bootcdbackup runs in interactive mode and you can run each function manually. This option is useful for debugging.
-v The option "-v" (verbose) adds messages on running.
-s This option can be used to disable interactive questions and to try to ignore errors.
-c <config directory>
The configuration directory which includes the file "bootcdbackup.conf", default is "/etc/bootcd".
-url <url>
If bootcdbackup is slow on your system (because of a slow CD/DVD drive or the HP ILO virtual CD interface), you can use an image server
to get the image from.
bootcdbackup use the SWAP partition of your upcoming system as temporary space and copy the image from the configured image server to
this partition and use it as image. The image server url is configured with this option.
-nomount
The target disk should not be mounted and no search for fstab is done.
--cpio
Normally as backup tool star will be used if selinux files have to be backed up and cpio will be used if not. With this option the
usage of cpio can be forced.
--star
Normally as backup tool star will be used if selinux files have to be backed up and cpio will be used if not. With this option the
usage of star can be forced.
-2diskconf <file>
The parameter configures a bootcd2disk.conf for the restore of the system done by bootcd2disk. The configuration file can be created
with the command bootcdmk2diskconf.
<dev>
Configures the device where bootcdbackup finds the file "fstab" and discover the configuration for the restore.
<name>
The name of the backup (no blanks!) is used on the creation time and to restore the backup with bootcd2disk -c <name>.
<builddir>
Builddir is an directory on the backup system where bootcdbackup build the backup CD/DVD. Space for the CD/DVD image, for compression
and the data is needed!
All other configuration has to be done in the config files.
FILES
/etc/bootcd/bootcdbackup.conf
Configuration for bootcdbackup.
SEE ALSO
Documentation in bootcdbackup.conf
bootcdbackup.conf(5), bootcd(1), bootcdflopcp(1), bootcdwrite(1)
AUTHOR
This manual page was written by Bernd Schumacher <bernd.schumacher@hp.com> and Carsten Dinkelmann <Carsten.Dinkelmann@foobar-cpa.de> for
the Debian GNU/Linux system (but may be used by others).
bootcdbackup 2007-07-05 BOOTCDBACKUP(1)