Sponsored Content
Full Discussion: Tape backup control
Top Forums Shell Programming and Scripting Tape backup control Post 73289 by serm on Tuesday 31st of May 2005 02:48:23 AM
Old 05-31-2005
Quote:
Originally Posted by jhansrod
Hi all

I have a requirement to ensure I do not overwrite a tape that is current. The way in which I propose doind this is by placing a header file at the beginning of the tape containing the creation date of the backup. Before each backup, I will read this file and validate.

My question is as follows. How can I read the first file from the tape or a certain amount of tape before exiting. My fear is that if I use the simple tar -xvf device headerfile it could take a while if there is nothing or a tape with content without a header file.

THanks

J Smilie

What type of backup - mksysb?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Tape Backup

Can someone please.... help me how to install tape backup I am using FreeBSD Unix version running on I386 PC box. My IDE tape device is made by HP (Colorado 5GB). Thank you in advance! (15 Replies)
Discussion started by: jackpotp
15 Replies

2. UNIX for Dummies Questions & Answers

How to add backup tape

Hi guys I have a Caldera Openlinux 3.1.1 i'm new with this OS so please bear with me. I have no idea about how to install my backup tape could any of you tell me how to do this. I worked before with unix sco openserver 5.0.6 and i know that you can use scoadmin and then option (tape ). ... (1 Reply)
Discussion started by: josramon
1 Replies

3. UNIX for Dummies Questions & Answers

Tape Backup

I have a script which runs overnight to backup a database into a tar file. I then gzip the file and send it off to a tape device. The command I'm using for the tape backup is tar cvf /dev/rmt/0n /var/dbbackup/${FILE}.gz I thought the n meant no rewind so the next file is copied to tape... (4 Replies)
Discussion started by: mattd
4 Replies

4. Solaris

backup using tape

hello everybody... i need some help ... so... i need to do some backups from one solaris system and i dont know whitch is the best solution....to use tar or ufsdump...? ...and .... how can i restore files from tape if on the tape i have 2 sessions....how can i access second session....? enough... (4 Replies)
Discussion started by: nich007
4 Replies

5. Solaris

backup to tape - compression?

How can I tell (from the command line) is compression is turned on for a tape drive? I need to backup a system that is approx 150gb to a tape that has 110gb uncompress but 220gb available compressed. Any ideas? Also is it possible to turn compression on or off from the command line? I am... (1 Reply)
Discussion started by: frustrated1
1 Replies

6. UNIX for Dummies Questions & Answers

Mounting DLT tape and to backup file to tape

Hi there: I'm new here Can anyone help me: I have DS15 Alpha server : Unix 5.1B Now i need to connect a DLVT VS80 1U Rackmount Tape Drive unit. What is the exact comman to mount the DLTape IV?? How do i make backuo @ copy file to the tape? Thanx to all (0 Replies)
Discussion started by: ayzeayem
0 Replies

7. UNIX for Dummies Questions & Answers

Check backup file size on backup tape

Hi, I performed backup on tape and I want to append more files to my previous backup on the same backup tape. But before I do that I need to know the backup file size of the first backup I performed so that I know the available size on the backup tape. Can someone help me what command I will use... (0 Replies)
Discussion started by: ayhanne
0 Replies

8. SCO

Backup to SCSI Tape Backup aborts

I am trying to make a full backup of my system using the cpio command. The Tape Unit is a SCSI DDS. The process started fine but after about 30 minutes, it just stopped and showed the following message: 1755 Signal 31 - Core dumped Any idea of what is causing this and how to fix it? ... (4 Replies)
Discussion started by: zionpc
4 Replies

9. AIX

Backup on Tape

Hi, I am very new to AIX, i have a development and a production server with AIX 6.1. I am using following command to backup my system /usr/bin/mksysb '-m' '-V' '-i' /dev/rmt0 You can what i have in my root volume group in the atached file and and you can also see the backup information of... (14 Replies)
Discussion started by: salmanucit
14 Replies

10. Solaris

How to backup when there is no tape available?

Hi All! Letīs say there are a few solaris servers connected to a NetApp storage device, but with no tape library or tape device attached to none of them. Assuming the O.S. is installed on the root disks, how to recover if the O.S. failed in one of the systems? Please share your ideas. (13 Replies)
Discussion started by: fretagi
13 Replies
BACKUP_READLABEL(8)					       AFS Command Reference					       BACKUP_READLABEL(8)

NAME
backup_readlabel - Reads and displays a tape's label SYNOPSIS
backup readlabel [-portoffset <TC port offset>] [-localauth] [-cell <cell name>] [-help] backup rea [-p <TC port offset>] [-l] [-c <cell name>] [-h] DESCRIPTION
The backup readlabel command displays information from the magnetic tape label of a tape. The information includes the tape's name (either a permanent name, or an AFS tape name that reflects the tape's contents in a prescribed format) and its capacity. If the "FILE YES" instruction appears in the /var/lib/openafs/backup/CFG_device_name file associated with the specified port offset, then the backup readlabel command reads the label information from the first 16 KB block in the backup data file listed for that port offset in the Tape Coordinator's /var/lib/openafs/backup/tapeconfig file, rather than from the beginning of a tape. The Tape Coordinator's default response to this command is to access the tape by invoking the "MOUNT" instruction in the local /var/lib/openafs/backup/CFG_device_name file, or by prompting the backup operator to insert the tape if there is no "MOUNT" instruction. However, if the "AUTOQUERY NO" instruction appears in the CFG_device_name file, or if the issuer of the butc command included the -noautoquery flag, the Tape Coordinator instead expects the tape to be in the device already. If it is not, the Tape Coordinator invokes the "MOUNT" instruction or prompts the operator. OPTIONS
-portoffset <TC port offset> Specifies the port offset number of the Tape Coordinator handling the tapes for this operation. -localauth Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. The backup command interpreter presents it to the Backup Server, Volume Server and VL Server during mutual authentication. Do not combine this flag with the -cell argument. For more details, see backup(8). -cell <cell name> Names the cell in which to run the command. Do not combine this argument with the -localauth flag. For more details, see backup(8). -help Prints the online help for this command. All other valid options are ignored. OUTPUT
Output from this command appears in both the shell window where the command is issued, and in the Tape Coordinator window. If the tape is unlabeled or if the specified tape device is empty, the output reads Failed to read tape label. Otherwise, the output in the shell window has the following format: Tape read was labelled: <tape name> (<dump id>) size: <size> Kbytes where <tape name> is the permanent name if the tape has one, or the AFS tape name otherwise. The <dump ID> is dump ID of the initial dump on the tape, and <size> is the recorded capacity of the tape in kilobytes. The output in the Tape Coordinator windows is bounded by an underlined "Tape label" header at the top, and the following string at the bottom: -- End of tape label -- In between are lines reporting the following information: tape name The permanent name assigned by using the -pname argument of the backup labeltape command. This name remains on the tape until that argument is used again, no matter how many times the tape is recycled or otherwise relabeled. If the tape does not have a permanent name, the value "<NULL>" appears in this field. AFS tape name A tape name in one of the following prescribed formats. The Backup System automatically writes the appropriate AFS tape name to the label as part of a backup dump or backup savedb operation, or the operator can assign it with the -name argument to the backup labeltape command. o volume_set_name.dump_level_name.tape_index, if the tape contains volume data. The volume_set_name is the name of the volume set that was dumped to create the initial dump in the dump set of to which this tape belongs; dump_level_name is the last pathname element of the dump level at which the initial dump was backed up; and tape_index is the numerical position of the tape in the dump set. o "Ubik.db.dump."tape_index if the tape contains a dump of the Backup Database, created with the backup savedb command. The tape_index is the ordinal of the tape in the dump set. o "<NULL>" if the tape has no AFS tape name. This is normally the case if the -name argument was not included the last time the backup labeltape command was used on this tape, and no data has been written to it since. creationTime The date and time at which the Backup System started performing the dump operation that created the initial dump. cell The cell in which the dump set was created. This is the cell whose Backup Database contains a record of the dump set. size The tape's capacity (in kilobytes) as recorded on the label, rather than the amount of data on the tape. The value is assigned by the -size argument to the backup labeltape command or derived from the /var/lib/openafs/backup/tapeconfig file on the Tape Coordinator machine, not from a measurement of the tape. dump path The dump level of the initial dump in the dump set. dump id The dump ID number of the initial dump in the dump set, as recorded in the Backup Database. useCount The number of times a dump has been written to the tape, or it has been relabeled. The message "ReadLabel: Finished" indicates the completion of the output. EXAMPLES
The following example shows the output for the tape with permanent name "oct.guest.dump" and capacity 2 MB, expressed in kilobyte units (2097152 equals 2 times 10242). % backup readlabel -portoffset 6 Tape read was labelled: oct.guest.dump (907215000) size: 2097152 Kbytes The output in the Tape Coordinator window reads: Tape label ---------- tape name = oct.guest.dump AFS tape name = guests.monthly.3 creationTime = Thu Oct 1 00:10:00 1998 cell = abc.com size = 2097152 Kbytes dump path = /monthly dump id = 907215000 useCount = 5 ---- End of tape label ---- The following example is for a tape that does not have a permanent tape. % backup readlabel -portoffset 6 Tape read was labelled: guests.monthly.2 (909899900) size: 2097152 Kbytes The output in the Tape Coordinator window reads: Tape label ---------- tape name = <NULL> AFS tape name = guests.monthly.2 creationTime = Sun Nov 1 00:58:20 1998 cell = abc.com size = 2097152 Kbytes dump path = /monthly dump id = 909899900 useCount = 1 ---- End of tape label ---- PRIVILEGE REQUIRED
The issuer must be listed in the /etc/openafs/server/UserList file on every machine where the Backup Server is running, or must be logged onto a server machine as the local superuser "root" if the -localauth flag is included. SEE ALSO
butc(5), backup(8), backup_labeltape(8), butc(8) COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved. This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell. OpenAFS 2012-03-26 BACKUP_READLABEL(8)
All times are GMT -4. The time now is 08:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy