Solved

more than one dump per tape

Posted on 2001-06-03
1
250 Views
Last Modified: 2013-12-27
How can i make more than one dump on a single tape? and then how to restore it with ufsrestore?
0
Comment
Question by:azawawi
1 Comment
 
LVL 40

Accepted Solution

by:
jlevie earned 50 total points
ID: 6150223
To place more than one dump image on a tape you need to use a no-rewind tape device designated by appending "n" to the unit number, e.g., /dev/rmt/0n. Then later when you wish to restore from a dump image other than the first on the tape you use "mt -f /dev/rmt/0n fsf N" to position the tape at the beginning of the desired image where "N" is number of images to skip over. For example, to dump all of the file systems to one tape you could do something like:

# for f in / /var /export; do
> ufsdump 0uf /dev/rmt/0n $f
> done

To retrieve the contents of the dump of /var you'd do:

# mt -f /dev/rmt/0n rew
# mt -f /dev/rmt/0n fsf 1
# ufsrestore rf /dev/rmt/0n

If you are restoring all of the dump images in order using mt to positition the tape isn't necessary. When ufsrestore completes the tape will be positioned at the beginning of the next image.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
UNiX Script filesystem space usage Part2 54 88
Sed question 2 102
Unix Script: Loop over all days of a month 17 106
Retreiving column names in Windows but not in Unix 11 58
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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.:

829 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