Solved

Trying to understand backup command in Solaris

Posted on 1998-03-30
1
355 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
1 Comment
 
LVL 1

Accepted Solution

by:
burnotte earned 100 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
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…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

813 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

10 Experts available now in Live!

Get 1:1 Help Now