Solved

What are the commands and directory path needed to restore a user's mailbox from a Dat tape in Red Hat 7?

Posted on 2003-11-06
2
311 Views
Last Modified: 2013-12-16
Can someone tell me how to restore a user's mailbox from a backup tape in Linux Red Hat 7?  We are using sendmail.  I know part of the command I should use (xvf  /dev/st0), but I'm not sure of the file that I need to restore.  Is it in /var/spool/mail/<username>?

Also, how can I view what's on the tape in sections?  tar tvf /dev/st0 shows me what's on the tape but the info runs too fast.  Can I go directly to the mail directory?

dee43
0
Comment
Question by:dee43
2 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 250 total points
ID: 9693898
'tar tvf /dev/st0 | more' is one way of examining the list output. Another is to run 'tar tvf /dev/st0 >tape.list' and then examine the contents of the tape.list file with more or an editor.

Yes, the file you'll need to restore from tape will be /var/spool/mail/username. Note that when specifying the file to the tar command you must use the patch exactly as it shows up in the output of 'tar tvf'.
0
 

Author Comment

by:dee43
ID: 9695566
thank you!!
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now