Solved

cpio restore can we make it faster?

Posted on 1999-01-12
3
246 Views
Last Modified: 2013-12-26
Currently, we use the following command to backup our data:
find. -depth -print | cpio -ocBL -O /dev/rct0
but the problem is when we want to restore a single file we use
cpio -vicdumBA -l/dev/rct0 filexx   this take forever to restore, how can we make it faster. I am dying here please help. thanks
0
Comment
Question by:petro2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1295385
remove A option from cpio
0
 
LVL 3

Accepted Solution

by:
mliberi earned 100 total points
ID: 1295386
At restore time the cpio command must read the whole block, even if you must restore a single file.

You could split the huge block to many little blocks. The restore operation could be done in two steps:
1) seek the block containing the file
2) read the block for file extraction

The first operation is very fast compared to the second.

Example: (I'm supposing that /dev/rct0.1 is the NO REWIND version of /dev/rct device, please check your os man pages)
               *** BACKUP ***
$ find A | cpio -ocBL -O/dev/rct0.1 # create first block on tape
$ find B | cpio -ocBL -O/dev/rct0.1 # create second block
.
$ find Z | cpio -ocBL -O/dev/rct0.1 # creat n-th block

let's suppose we want to extract a file within directory Z (n-th block)
$ tctl -f /dev/rct0 fsf <n-1>   # seek n-th block, FF very quick
$ cpio -vicdumBA -l/dev/rct0 filexx # extract filexx
0
 

Author Comment

by:petro2
ID: 1295387
It from this point forward, I was hoping for a miracle, an answer that would work on some of the old backups thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question