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
AMMT(8) 						      System Manager's Manual							   AMMT(8)

NAME
ammt - Amanda version of mt SYNOPSIS
ammt [ -d ] [ -f|-t device ] command [ count ] DESCRIPTION
Ammt provides just enough of the standard mt command for the needs of Amanda. This is handy when doing a full restore and the standard mt program has not yet been found. Ammt also provides access to the Amanda output drivers that support various tape simulations. See the amanda(8) man page for more details about Amanda. See the OUTPUT DRIVERS section of amanda(8) for more information on the Amanda output drivers. OPTIONS
-d Turn on debugging output. -f device Access tape device device. If not specified, the TAPE environment variable is used. -t device Same as -f. command count Which command to issue, and an optional count of operations. COMMANDS
Each command may be abbreviated to whatever length makes it unique. eof|weof count Write count (default: 1) end of file marks (tapemarks). fsf count Skip forward count (default: 1) files. bsf count Skip backward count (default: 1) files. asf count Position to file number count (default: 0) where zero is beginning of tape. This is the same as a rewind followed by a fsf count. rewind Rewind to beginning of tape. offline|rewoffl Rewind to beginning of tape and unload the tape from the drive. status Report status information about the drive. Which data reported, and what it means, depends on the underlying operating system, and may include: ONLINE Indicates the drive is online and ready. OFFLINE Indicates the drive is offline or not ready. BOT Indicates the drive is at beginning of tape. EOT Indicates the drive is at end of tape. PROTECTED Indicates the tape is write protected. ds Device status. er Error register. fileno Current tape file number. blkno Current tape block number file. NOTE: many systems only report good data when a tape is in the drive and ready. AUTHOR
Marc Mengel <mengel@fnal.gov> John R. Jackson <jrj@purdue.edu> SEE ALSO
amanda(8) AMMT(8)
All times are GMT -4. The time now is 10:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy