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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
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 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.:

705 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

17 Experts available now in Live!

Get 1:1 Help Now