?
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
?
324 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:
Suggested Courses
Course of the Month9 days, 15 hours left to enroll

762 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