[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Trying to understand backup command in Solaris

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

Independent Software Vendors: 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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
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…
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…
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.:
Suggested Courses
Course of the Month18 days, 5 hours left to enroll

830 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