05-08-2002
Read the man page on ufsrestore - it gives you all the information you need to do a interactive restore.
I'll try to put the sequence in but it's from memory and I don't know if it will be exactly right.
Let's say you do a ufsdump of /, /usr, /export, /opt to a single tape.
To restore a file xxx from /export/home, you would load the tape into the tape drive (write-protected) and issue commands in order (your tape device may be different):
# mt -f /dev/rmt/1n 2 fsf
# ufsrestore -ivf /dev/rmt/1n
ufsrestore> cd home
ufsrestore> add xxx
ufsrestore> extract
You can also use the what command inside the ufsrestore interactive to insure you are on the correct dump file and ls to show the files in the 'directory'.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
help please
i have "inherited" a Sco Server (the administrator departed in a hurry...yes we are chasing him..) and haven't used Unix for 8 years.
i have a file that i need to retrieve from a tape.
i have been able to find the file on tape using the cpio -ivt command.
however...
the problem I... (3 Replies)
Discussion started by: mfischer
3 Replies
2. Solaris
Is it possible to restore a TAR'ed file off of a tape to a location other than the original location? If so, how?
(The MAN pages give examples of how to restore only to the originating location.)
Thanks!! (1 Reply)
Discussion started by: FredSmith
1 Replies
3. UNIX for Dummies Questions & Answers
I was recently given the responsibility of the unix box at our work. Without much training, I now have to go back and restore a file from tape. I'm having some trouble with it. I'm getting an error with the blocksize.
The part of the script that does the tar looks like this:
tar cvfX... (11 Replies)
Discussion started by: citrowske
11 Replies
4. Shell Programming and Scripting
I'm new to Unix and have just wrote a little program to move files to a recycle bin (a Directory i created) and restore them. The problem is that i need to keep track of all the full filenames so that i can restore them to the right place. I did this by creating a file called delreg and putting the... (4 Replies)
Discussion started by: zoolz
4 Replies
5. Shell Programming and Scripting
Hello everyone,
I am new to unix shell.
I have a file called Path.txt....and i have data in that as
1 abhi
2 avi
3 ash so on.....
1 ,2 ,3 is the... (2 Replies)
Discussion started by: AbhijitIT
2 Replies
6. UNIX for Dummies Questions & Answers
Hello
I take a backup using the following command on Solaris 9
tar cvf /dev/rmt/0n data
the data volume contains a number of files say a, b, c , d ... etc
Now I want to restore only one file (eg b) from the data volume.
When I issue the command
tar xvf /dev/rmt/0n data/b... (1 Reply)
Discussion started by: rahmantanko
1 Replies
7. Red Hat
Post deleted. (0 Replies)
Discussion started by: Nobody_knows_me
0 Replies
8. Shell Programming and Scripting
Hello everyone,
I am attempting to make a recycling bin type application in shell script (tcsh). I have the whole part of the application done where someone can recycle files from one location to the recycling bin (the lower half of the program), this is not a problem. However I wanted to make... (7 Replies)
Discussion started by: tastybrownies
7 Replies
9. UNIX for Dummies Questions & Answers
Is there a way I could recover a deleted text file with "rm -rf" command.
Running CentOS 6.5.
Thank you. (5 Replies)
Discussion started by: galford
5 Replies
10. UNIX for Advanced & Expert Users
Quite an obscure question I think.
We have a rebuild process for remote sites that allows us to PXE rebuild a till (actually a PC with a touch screen and various fancy bits) running CentOS. The current CentOS5 tills work just fine with a tar image restore and some personalisation. Sadly,... (4 Replies)
Discussion started by: rbatte1
4 Replies
LEARN ABOUT OPENSOLARIS
tcopy
tcopy(1) User Commands tcopy(1)
NAME
tcopy - copy a magnetic tape
SYNOPSIS
tcopy source [destination]
DESCRIPTION
The tcopy utility copies the magnetic tape mounted on the tape drive specified by the source argument. The only assumption made about the
contents of a tape is that there are two tape marks at the end.
When only a source drive is specified, tcopy scans the tape, and displays information about the sizes of records and tape files. If a des-
tination is specified, tcopy makes a copies the source tape onto the destination tape, with blocking preserved. As it copies, tcopy pro-
duces the same output as it does when only scanning a tape.
The tcopy utility requires the use of Berkeley-compatible device names. For example,
example% tcopy /dev/rmt/1b /dev/rmt/2b
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWesu |
+-----------------------------+-----------------------------+
SEE ALSO
mt(1), ioctl(2), attributes(5)
NOTES
tcopy will only run on systems supporting an associated set of ioctl(2) requests.
SunOS 5.11 10 Mar 2000 tcopy(1)