The problem is that "restore"/"backup" file format has no "table of contents", so basically "restore" has to read the whole file to generate it. The limiting factor is the speed of the tape (this is probably the case with the "backup" too).
What you can do is: instead of piping the file list directly into "backup" create a file first. Then write this file first at the rmt-device, only then use the same list as input to "backup". Write to the "/dev/rmtN.1" instead of "/dev/rmtN", this is the drive without "rewind on exit", so your "table of contents" will be the first entry on the cartridge. You can restore this single file to get/search a list of files backed up in this session.
Backup (schematic)
Search (=restore toc only)
Restore (schematic, skip first entry, then restore normally)
I hope this helps.
HI All
I have created the bootable recovery tape using the ignite command make_tape_recovery, I need help for the command to list the content recorded in that tape.
Regards,
Gege:confused: (1 Reply)
I'm pulling a 1MB file from tape using tar. It's a 300GB DLT tape and it does have a lot of files on it because it's go the entire OS and Oracle RMAN files and 3000 table exports, but it's taking 2-3 hours to pull this file off of it. Is this type of performance what I should expect?
The... (0 Replies)
Hello guys,
I am having a requirement,
I am having three file m1,m2,m3 having some contents. I want to list last 20 lines of m1,m2 and m3 all together on the terminal.
I used tail -20 m1 m2 m3,
but it is showing error,
tail: option used in invalid context -- 2
Can u help me... (2 Replies)
Hi fellows,
Can you please share any command with which I can list down the file names inside a tar.gz file.
I have tried with these possibilities but in vain.
bash-3.00$ tar -ztvf file.tar.gz
tar: z: unknown function modifier
bash-3.00$ tar ztvf file.tar.gz
tar: z: unknown function... (1 Reply)
had this p520 server connected to a DDS-3 4mm tape drive...
running AIX 7.1 TL01 -- the latest release.
mksysb -i -e /dev/rmt/1 ..tells me only 1% is done after over an hour ...
I had no problems with th hardware and other connections...
tar command to /dev/rmt/1 runs very fast ....... (3 Replies)
Hi.
I have this old server onto which i needed to list the content of a tape. This is a SCO box (SCO_SV 3.2 5.0.6 i386) and backup was done using cpio.
#tape status
status : ready beginning-of-tape
soft errors : 0
hard errors : 0
underruns : 0
#dtype /dev/rct0
/dev/rct0 ... (5 Replies)
Hi,
We replaced one of our tape drives (attached to a SPARC Server) with an LTO5 one (external, attached vi SAS). Manually we check (using tar) that the OS can write data to the Tape Drive, however, the application backup is failing.
Since the application takes its own backup, the apps team... (0 Replies)
Hi All,
I would like to know couple of ways to list the content available in tar and gzipped file without extracting.
i.e., I would like to display the contents of test.tar.gz without extracting.
Note :: please suggest a command other that tar -ztvf (9 Replies)
I am often given log files at work in .csv format to work with, normally extracting various fields. I then have to figure out the number of each field so that I can extract that field with cut or awk. Normally I just manually count the fields, based on the field separator. I would like to be... (3 Replies)
Hi All
I have a file which contains the timestamp of the log and a message and I want to implement a polling mechanism, where this log file is pooled every 2 minutes and list the errors in the file. I want to list down the errors only after the timestamp in the file is more than the current... (2 Replies)
Discussion started by: infyanurag
2 Replies
LEARN ABOUT DEBIAN
cdrestore
cdrestore(1)cdrestore(1)NAME
cdrestore - Streaming restore from CD-R(W)/DVD-R(W)
SYNOPSIS
cdrestore [-qvDFRTV] [-d device] [-i image] [-l size]
[-t track] [-c command]
DESCRIPTION
cdrestore is a utility to make streaming restores from CD-R(W)/DVD-R(W) disks. It's designed to work with any backup tool which is able to
restore from stdin (like tar/cpio/afio).
OPTIONS -d device
The device name which is used for reading the backup.
(default: /dev/cdrom)
-i image
Enables virtual image mode. The backup stream is read from the given image file. You have to use this option, if you are restoring
from a dumped image too.
(default: none)
-l size
Specifies the media size. This value is used to display the free space on the media only.
By default the given value is taken as megabytes. You can append a single letter to the number to select: (k)ilobytes, (m)egabytes,
(g)igabytes or (s)ectors (e.g. 170k, 4488m, 350000s).
(default: 650m)
-t track
The number of the data track on the media for reading the backup.
(default: none)
-T Enables test mode. The complete restore process is done to test data integrity (includes CRC checksum test, if available), but no
data is output.
NOTE: This only verifies that the data is readable by cdrestore at all. This doesn't guarantee that your backup software will be
able to do a real restore with the data.
-F Forces cdrestore to begin the restore in the middle of a multi-disk set. This may be useful if you have lost a disk or a disk is
badly damaged.
NOTE: This will most probably start the restore in the middle of a file. It's up to your backup software to sync to the beginning of
the next file.
-R Disable the kernel readahead for the CDROM device during the restore process. (see cdbackup(1) Known problems)
-c command
The command which is executed whenever cdrestore needs to request a new media for multi-disk backups. This command (or script)
should prompt the user and return after the device is ready again. The command receives one argument, which is the device name
passed with -d. This can be used to issue commands to the device like ejecting the media.
(default: use internal diskchange prompt)
-q Queries the media, prints out the contents and exits.
-v Enables verbose mode.
-D Enables DEBUG output (probably not useful for normal use).
-V Prints out version information and exits.
EXAMPLES
Query the 700 MB media on /dev/sr0:
cdrestore -d /dev/sr0 -l 700 -q
Restore a tar archive to the current directory from track 2 of a 702 MB media on /dev/scd0:
cdrestore -d /dev/scd0 -l 702 -t 2 | tar xf -
Query the contents of a virtual image:
cdrestore -i /tmp/vimage -l 4488m -q
Check data integrity of track 3 in a virtual image after dumping it to DVD media:
cdrestore -i /dev/dvd -t 3 -T
AUTHORS
Stefan Hulswitt <s.huelswitt@gmx.de>
SEE ALSO cdbackup(1)LICENSE
Copyright (c) 2000-2004 Craig Condit, Stefan Hulswitt.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WAR-
RANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CON-
TRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
Stefan Hulswitt 0.7.0 cdrestore(1)