Sponsored Content
Full Discussion: backup
Operating Systems AIX backup Post 302287634 by bakunin on Saturday 14th of February 2009 07:02:14 PM
Old 02-14-2009
Quote:
Originally Posted by zaxxon
I am too lazy to walk to the server room to test it with a tape, but when you write 1 file to tape with tar, and after that another, I guess you just overwrite the 1st or if they are both on the tape, you have to spool around.
This is true, but only in principle. The complete picture is quite more complex because of the somewhat counterintuitive way AIX is dealing with tape-drives:

You sure know that to access the tape you use a device like /dev/rmt0, yes? This is the tape drive in its standard configuration, the attributes shown if you do a "lscfg -vp rmt0" or a "lsattr -El rmt0" respectively.

But you might also have seen device specifications like "/dev/rmt0.1" or such. Have you ever wondered what they stand for? Well, i have not found a complete table up until now, but the principle is: it is the same tapedrive minus selected properties and every sub-number (/dev/rmt0.1, /dev/rmt0.2, etc..) stands for some capability or several capabilities which are "switched off" from the original drive.

Why does that have to do with the posters problem you ask: the standard drives (/dev/rmt0) of all IBM drives i know have an auto-rewind-feature. As soon as the tar output is written to the tape it is rewound back to its beginning. /dev/rmt0.1 (as the poster has found out to use) is the same drive but with this auto-rewind feature switched off.

Btw., there is also another way to navigate your way through a multi-session tape with several entries, like, for instance, an mksysb-tape: use the "tctl" command with the "fsf" subfunction. "fsf" is for "forward skip file" and is followed by a number indicating how many files to skip. For instance to write a file after an already written on use the following:

Code:
( tctl fsf 1 ; tar -cvf /dev/rmt0 /path/to/file )

Or, to read the backup of the filesystems in a mksysb tape, which is the fourth file on the tape:

Code:
tctl fsf 3 ; tar -tvf /dev/rmt0

I hope this helps.

bakunin
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

The best backup

I am taking a class all about linux. Where where asked to find the best backup program. We never did agree and are system was set up with scp because some one already knew how to use it and thus the quickest to set up. Great example of legacy support. However, on my computer i do not have a... (1 Reply)
Discussion started by: macdonto
1 Replies

2. UNIX for Dummies Questions & Answers

regarding backup

hi i wanna know that is any such type of backup possible in Solaris or AIX that if my system crashes and i had to format the server.........then i shud be able to build the server with that backup only...........if so how thx (3 Replies)
Discussion started by: girish_shukla
3 Replies

3. UNIX for Dummies Questions & Answers

Backup

Dear All I have an HP 9000/800 UNIX machine , I have also Oracle applications 11i installed on it , we tried to take backup using fbackup command but it skipped some files ( was for database and the database was up and running ) but it took the other database files. I need to know also ,... (2 Replies)
Discussion started by: hisham.hamdy
2 Replies

4. 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

5. 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

6. UNIX for Advanced & Expert Users

Backup to CD ????? any one know how to do ???

hi, am trying to backup data on cd, cuz i don not have tape device....!!! i've rewritable CDROM, am using solaris 10 for x86 on vmware ..... how to make a backup data to a cd_rom againist to tape ? # ufsdump 0f cd_rom (1 Reply)
Discussion started by: sasame
1 Replies

7. UNIX for Advanced & Expert Users

backup a file and keep every version of the backup

I am trying to backup my .bash_history and I want to keep every version of the backup. I am thinking to put one of these in my crontab. 0 0 * * 0,3 cat .bash_history > boo 0 0 * * 0,3 cp .bash_history boo I would like the backups to be called boo1, boo2, boo3, etc. I would like to keep... (7 Replies)
Discussion started by: cokedude
7 Replies

8. Shell Programming and Scripting

rsync backup mode(--backup) Are there any options to remove backup folders on successful deployment?

Hi Everyone, we are running rsync with --backup mode, Are there any rsync options to remove backup folders on successful deployment? Thanks in adv. (0 Replies)
Discussion started by: MVEERA
0 Replies

9. Shell Programming and Scripting

Help with Backup Shell Script for Network Device Configuration backup

HI all, im new to shell scripting. need your guidence for my script. i wrote one script and is attached here Im explaining the requirement of script. AIM: Shell script to run automatically as per scheduled and backup few network devices configurations. Script will contain a set of commands... (4 Replies)
Discussion started by: saichand1985
4 Replies
TM(4)							     Kernel Interfaces Manual							     TM(4)

NAME
tm - TM-11/TU-10 magtape interface DESCRIPTION
The files mt0, ..., mt7 refer to the DEC TU10/TM11 magtape. When closed it can be rewound or not, see below. If it was open for writing, two end-of-files are written. If the tape is not to be rewound it is positioned with the head between the two tapemarks. If the 0200 bit is on in the minor device number the tape is not rewound when closed. A standard tape consists of a series of 512 byte records terminated by an end-of-file. To the extent possible, the system makes it possi- ble, if inefficient, to treat the tape like any other file. Seeks have their usual meaning and it is possible to read or write a byte at a time. Writing in very small units is inadvisable, however, because it tends to create monstrous record gaps. The mt files discussed above are useful when it is desired to access the tape in a way compatible with ordinary files. When foreign tapes are to be dealt with, and especially when long records are to be read or written, the `raw' interface is appropriate. The associated files are named rmt0, ..., rmt7. Each read or write call reads or writes the next record on the tape. In the write case the record has the same length as the buffer given. During a read, the record size is passed back as the number of bytes read, provided it is no greater than the buffer size; if the record is long, an error is indicated. In raw tape I/O, the buffer must begin on a word boundary and the count must be even. Seeks are ignored. A zero byte count is returned when a tape mark is read, but another read will fetch the first record of the new tape file. FILES
/dev/mt?, /dev/rmt? SEE ALSO
tp(1) BUGS
If any non-data error is encountered, it refuses to do anything more until closed. In raw I/O, there should be a way to perform forward and backward record and file spacing and to write an EOF mark. TM(4)
All times are GMT -4. The time now is 11:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy