?
Solved

Trying to understand backup command in Solaris

Posted on 1998-03-30
1
Medium Priority
?
362 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
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.
Suggested Courses
Course of the Month13 days, 21 hours left to enroll

801 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