Solved

cpio restore can we make it faster?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

947 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

18 Experts available now in Live!

Get 1:1 Help Now