Solved

cpio restore can we make it faster?

Posted on 1999-01-12
3
231 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
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now