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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Why VNC doesn't work in Redhat? 11 45
Block sender e-mail address in Postfix 4 66
nagios alerts 3 33
Linux VM 6 54
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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.:
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…

863 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

27 Experts available now in Live!

Get 1:1 Help Now