Solved

Trying to understand backup command in Solaris

Posted on 1998-03-30
1
352 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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.

762 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

18 Experts available now in Live!

Get 1:1 Help Now