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

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 260
  • Last Modified:

more than one dump per tape

How can i make more than one dump on a single tape? and then how to restore it with ufsrestore?
0
azawawi
Asked:
azawawi
1 Solution
 
jlevieCommented:
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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now