[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Trying to understand backup command in Solaris

Posted on 1998-03-30
1
Medium Priority
?
365 Views
Last Modified: 2013-12-21
     We are switching over our backups from running on
a Sun0s 4.1.4 machine to one that is using Solaris 2.5
  I look at the man page for the command 'st' and it seems
to be written in Aramic.   So I need help.
     But most of all I need a working example.  So, okay,
say I have a server called sniffle and I want to use an
Exebyte 8505 8mm cartridge system in the 5 Gbyte format
with the partition names in the format /dev/dsk/c0t0d0s0
to /dev/dsk/c0t2d0s7 what would the backup script look
like?
0
Comment
Question by:bwsaul
[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
1 Comment
 
LVL 1

Accepted Solution

by:
burnotte earned 400 total points
ID: 2009051
the best way to perform a backup under solaris 2.x is to use the command ufsdump and use ufsrestore to restore the backup.

here is a exemple:

ufsdump 0ufc /dev/rmt/0n /dev/rdsk/c0t0d0s0
ufsdump 0ufc /dev/rmt/0n /dev/rdsk/c0t0d0s1
and so on

the parameters 0ufc means :
0 : the dump level 0 ( full backup )
u : update the file /etc/dumpdates so you can know when your last backup as been done
f : specify the device name ( in this case /dev/rmt/0n )
c : set the write size to 63k instead of 32k


/dev/rmt/0n is the device name for your drive .
the device name /dev/rmt/0n if it is the first drive
/dev/rmt/1n if it is the second and so on.
don t forget the n for no-rewind.

/dev/rdsk/c0t0d0s0 is the file system that you want to backup.
you can also replace /dev/rdsk/c0t0d0s0 by the name of the mount point : for exemple /opt .

for the restore of the backup use the command ufsrestore

ufsrestore rvf /dev/rmt/0n
and this the number of time that you use ufsdump
ufsrestore restore the backup in the current directory so be award to be in the good directory when you restore your backup.

I hope this will help you.

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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 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.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

649 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