[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
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
Medium Priority
?
327 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 1000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month19 days, 11 hours left to enroll

872 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