Pulling a file off a backup tape


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Pulling a file off a backup tape
# 1  
Old 05-27-2004
Pulling a file off a backup tape

I have AIX 5.1
This may sound like a really dumb question but I have never done this before.

I would like to pull a file off a backup tape and put back on the AIX

is this as simple as as doing a

mount /dev/rmt1

then the file name that is on the tape /dump/rpt/xxxxxx
Do I just copy it back on?
cp /dump/rpt/xxxxxx /dump/rpt/xxxxxx
I think I have something wrong here though

After doing some more research I see that in Linux you can use a [restore] command like this [restore if /dev/rmt1]
then at the [restore] prompt cd to the directory and [add] the file I want. Then use the [extract] command to pull the file
Would this work??
Thanks
Dave

Last edited by rocker40; 05-27-2004 at 01:28 PM..
# 2  
Old 05-27-2004
Have you considered trying the tar command? Its purpose is reading and writing from tape drives, after all...

tar -x -f /dev/rmt1 /dump/rpt/xxxxxx
# 3  
Old 05-27-2004
question

This will work for AIX 5.1 ?
Doe sthe [tar] command work in this?
I was thiinking that was only a Linux command.
I am have not used it much do I run the command above from the directory I want it put in?
Say I want it in /dump/rpt on the on my AIX I would cd over to /dump/rpt then run

tar -x -f /dev/rmt1 /dump/rpt/xxxxxx

Is that what you mean?
Thanks
Dave

Last edited by rocker40; 05-27-2004 at 05:23 PM..
# 4  
Old 05-27-2004
tar will only work if tar was used to create the tape. How was the tape created?

If cpio crerated the tape, then you need to use cpio to read it.

If dump created the tape, then you use restore to read. This the the command you found.

tar and cpio are very standard commands. dump and restore are less standard.

We use veritas netbackup to write our tapes so we need to netbackup to read them.
# 5  
Old 05-28-2004
Actually, tar appends the full path of the extracted file to your current directory, so what you would do is cd / and run that command. If you did cd /dump/rpt first, you would get files named /dump/rpt/dump/rpt/xxxxxx.
# 6  
Old 05-28-2004
backupline

perderabo..

It uses this line to backup.
find ./
does this tell me what its using?
I find the line that starts with this several times in the script.
Thanks
dave
# 7  
Old 05-28-2004
find just produces a list of filenames. Take another look at the script. I'll bet it more like...

find <some stuff> | cpio <more stuff>

If so, then cpio is being used to create the tape. You will need to know the parameters to cpio in order to read the tape. For example, I'll bet that you're using -B in the cpio.

A good first step is to just read the tape and produce a list of filenames without trying to restore anything. In the simplest form, the command would be:

cpio -itv < /dev/tapedrive

but that probably won't work well because you are not matching the way it was written. It might really need:

cpio -itvB < /dev/tapedrive

Bear in mind that I don't know AIX so I don't know if your cpio is special. And all of this assumes that you are using cpio which may not be the case. We need more info from that script.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

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

2. Solaris

How to take backup of ZFS file system on a tape drive?

Hi Guys, I want to take backup of a ZFS file system on tape drive. Can anybody help me with this? Thanks, Pras (0 Replies)
Discussion started by: prashant2507198
0 Replies

3. UNIX for Dummies Questions & Answers

Copy file from a backup tape

I have several files that I need to get off of a backup tape. I'm using AIX 4.3 (I know this is old) and our backups are done using the bru command. I need to copy these files to a specific location, and not restore them to the original location. Can anyone tell me what command I should use to do... (4 Replies)
Discussion started by: troy
4 Replies

4. Solaris

define .rhost file for tape backup to remote host

howdy experts, i am using 2 server- Solaris 5.9 i have tape device attached with 1 of my solaris server. But others not. # modinfo|grep tape 152 13d43e4 1333c 33 1 st (SCSI tape Driver 1.231) now i want to Backup DATA file and System File in Tape Drive. How do I take data and... (3 Replies)
Discussion started by: thepurple
3 Replies

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

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

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

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

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