Sponsored Content
Operating Systems AIX Slow listing of LTo5 tape contents Post 302806145 by bakunin on Sunday 12th of May 2013 02:59:59 PM
Old 05-12-2013
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)
Code:
find .... -print > /tmp/filestobackup
tctl -f /dev/rmtN.1 rewind
tar cf /dev/rmtN.1 /tmp/filestobackup
backup -ivf /dev/rmtN.1 < /tmp/filestobackup
tctl -f /dev/rmtN rewoffl

Search (=restore toc only)
Code:
tar xf /dev/rmtN

Restore (schematic, skip first entry, then restore normally)
Code:
tctl fsf 1 -f /dev/rmtN.1
restore -lTf /dev/rmtN.1

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
 

10 More Discussions You Might Find Interesting

1. HP-UX

Listing the Ignite Backup tape

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)
Discussion started by: cgege
1 Replies

2. UNIX for Dummies Questions & Answers

Very slow Tar extraction from tape

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)
Discussion started by: citrowske
0 Replies

3. UNIX for Dummies Questions & Answers

Listing contents

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)
Discussion started by: mraghunandanan
2 Replies

4. Solaris

Listing Contents of tar.gz file

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)
Discussion started by: Zaib
1 Replies

5. AIX

mksysb to tape too slow...

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)
Discussion started by: ppchu99
3 Replies

6. SCO

CPIO listing from tape question...

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)
Discussion started by: Stephan
5 Replies

7. Solaris

[SOLVED] How to initialize LTO5 Tape Drive?

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)
Discussion started by: Mack1982
0 Replies

8. UNIX for Dummies Questions & Answers

Listing contents of .tar.gz files

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)
Discussion started by: Girish19
9 Replies

9. Shell Programming and Scripting

Listing contents of fields

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)
Discussion started by: stumpyuk99
3 Replies

10. Shell Programming and Scripting

Listing the contents of a file after a timestamp

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
FLEXBACKUP(1)						      General Commands Manual						     FLEXBACKUP(1)

NAME
flexbackup - a flexible backup/archiving tool SYNOPSIS
flexbackup [OPTION] DESCRIPTION
Flexbackup is a perl script front-end to various low-level archiving utilities such as tar, dump/restore, cpio, and others. BACKUP OPTIONS
flexbackup -dir <dir> Backup a directory tree starting from path "path" using level 0 (full). flexbackup -set all Backup all sets defined in flexbackup.conf(5) using level 0 (full). flexbackup -set <tag> Backup a set named "tag" using level 0 (full). The set name is defined in flexbackup.conf(5). flexbackup [...] -level <0-9 | full | differential | incremental> Change backup level to a number "0-9", or one of the symbolic names: "full" (level 0); "differential" (level 1); "incremental" (pre- vious backup level + 1). flexbackup [...] -pkgdelta <rpm | freebsd> Prune backup to files not part of a package or changed from distributed version. flexbackup [...] -wday <0-7> Backup only if the week day matches the input number. Sunday is 0 or 7. flexbackup [...] -pipe Write backup data to stdout rather than file/device. flexbackup [...] -ignore-errors Continue backups even if commands return error status RESTORE OPTIONS
flexbackup -list List files in archive. flexbackup -extract Extract (restore) all files from archive into your current working directory. flexbackup -extract -flist <filelist> Extract (restore) the files listed in text file "filelist" into your current working directory. flexbackup -extract -onefile <filename> Extract (restore) the single file named "filename" into your current working directory. flexbackup -compare Compare the archive with the files in your current working directory. flexbackup -restore Interactive restore (dump type only for now). flexbackup [...] -num <n> Read file number "n" from tape. If not given uses current tape position. flexbackup [...] <archive> If archiving to files rather than a device, use file named "archive" for the list/extract/compare/restore operations. flexbackup [...] -pipe Read backup data from stdin rather than file/device. INDEXING OPTIONS
flexbackup -toc List current device's table of contents. flexbackup -toc all List all known table of contents. flexbackup -toc <key> List table of contents for specific database index key named "key". flexbackup -rmindex all Force delete all database index info. flexbackup -rmindex <key> Force delete specified database tape/dir index key named "key". flexbackup -rmindex <key:file> Force delete specified database tape/dir index key named "key", file number "file". MISCELLANEOUS OPTIONS
flexbackup -newtape Erase and create new index key (but don't do any backups). flexbackup -rmfile all If archiving to files rather than device, remove all files and index information. flexbackup -rmfile <file> If archiving to files rather than device, remove the file named "file" and its index information. flexbackup [...] -c <file.conf> Use file named "file.conf" for configuration information instead of /etc/flexbackup.conf(5). flexbackup [...] -type <type> Override $type setting from config file with "type". flexbackup [...] -compress <type> Override $compress setting from config file with "type". flexbackup [...] -device <device> Override $device setting from config file with "device". flexbackup [...] -d <'setting=value'> Override $setting setting from config file with "value". flexbackup -dir <dir> -erase Force a rewind/erase before backup of directory named "dir". flexbackup -dir <dir> -norewind Do not rewind tape after a single backup of directory named "dir". flexbackup -set <tag> -noreten Do not retension tape for level 0 (full) backups of set named "tag". flexbackup -set <tag> -noerase Do not rewind/erase tape for level 0 (full) backups of set named "tag". flexbackup [...] -reten Force a retension of tape before reading. flexbackup [...] -defaults Do not use any default values for config variables. flexbackup -version Display version and exit. TESTING
/DEBUGGING OPTIONS flexbackup -test-tape-drive Tries writing/reading files to make sure you have tape driver and parameters set up correctly in flexbackup.conf(5). flexbackup [...] -n Don't run actual dump or mt commands, just print the steps that would be taken (dry run). flexbackup [...] -type filelist Run a special backup type that just saves a list of files that would have been archived. FILES
/etc/flexbackup.conf - configuration settings REPORTING BUGS
Report bugs to (flexbackup-help@lists.sourceforge.net) AUTHOR
Written by Edwin Huffstutler (edwinh@computer.org) SEE ALSO
flexbackup.conf(5) afio(1) mt(1) tar(1) star(1) cpio(1) dump(1) restore(1) buffer(1) mbuffer(1) Flexbackup Oct 2003 FLEXBACKUP(1)
All times are GMT -4. The time now is 05:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy