backup


 
Thread Tools Search this Thread
Operating Systems AIX backup
# 1  
Old 02-10-2009
backup

hi seniors today i took a backup using tar cmd in this i took two files for backup,backup was done succesfully but while viewing using tar -tvf ------- its showiing only one file at a time and i took backup in /etc/hosts,/etc/sen/nes
# 2  
Old 02-11-2009
What do you mean by
Quote:
its showiing only one file at a time
and please post the working directory and exact command you used when creating the tar.
# 3  
Old 02-11-2009
back up

present dir is /etc/hosts and i put the cmd tar -cvf /dev/rmt0 /etc/hosts and after completion of the work it showing r-rw-r 20 block /etc/hosts and after that i took anothere backup and after that i view the file in the drive
tar -tvf /dev/rmt0
# 4  
Old 02-11-2009
Not sure I understood...
You were in /etc (and not /etc/hosts) but has no impact since you used:
Code:
tar -cvf /dev/rmt0 /etc/hosts

Which meant an absolute path.. your second tar was done in replacement of the first I would believe since you didnt use tar append option not moved forward with mt command
# 5  
Old 02-12-2009
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.

Maybe it is more practical to just include all files and dirs you want to backup to tape into 1 tmp directory or give them as parameter to 1 tar and write them to tape in 1 archive instead of one after each other.
# 6  
Old 02-13-2009
[hi friend i got the solution for that for the second(file) backup we have to give the cmd like tar -cvf /dev/rmt0.1 /etc/----- its working try it
# 7  
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
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

9. 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
Login or Register to Ask a Question