Solved

Full backup on solaris

Posted on 2002-03-04
6
693 Views
Last Modified: 2013-12-21
Hi..to all solaris gurus out there..

 .my boss ask me
 to do full backup
 on our solaris 5.4

 can somebody shows me
 the steps  to do
 full backup.

 thanks.
0
Comment
Question by:ismahwati
[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
6 Comments
 
LVL 38

Accepted Solution

by:
yuzh earned 100 total points
ID: 6840824
Hi  ismahwati,

   You need to do the followings to perform a full backup for your system.

   1. su as root.

   2. Have a look at /etc/vfstab to see your systems' layout:

   The file should look like the followings:

  #-------------------------------------------------------------------------------
    #device         device          mount           FS      fsck    mount   mount
    #to mount       to fsck         point           type    pass    at boot options
    #
    #/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr          ufs     1       yes     -
    fd      -       /dev/fd fd      -       no      -
    /proc   -       /proc   proc    -       no      -
    /dev/dsk/c0t0d0s3       -       -       swap    -       no      -
    /dev/dsk/c0t0d0s0       /dev/rdsk/c0t0d0s0      /       ufs     1       no      -
    /dev/dsk/c0t0d0s6       /dev/rdsk/c0t0d0s6      /usr    ufs     1       no      -
    /dev/dsk/c0t0d0s1       /dev/rdsk/c0t0d0s1      /var    ufs     1       no      -
    /dev/dsk/c0t0d0s7       /dev/rdsk/c0t0d0s7      /export ufs     2       yes     -
    swap    -       /tmp    tmpfs   -       yes     -

  #-------------------------------------------------------------------------------

   from the above table, you can see you have 4 file systems to be backup. (/, /usr/, /var and /export)

   3. type in the following comand to backup your system to the tape: (I assume that your tape device is /dev/rmt/0,
if not just replace it with the one you have)

    mt -f /dev/rmt/0 rewind

     $ for fs in / /usr /var /export ; do
     /usr/sbin/ufsdump 0cf /dev/rmt/0n $fs
     done


   This will do the job for you.

========
yuzh

   PS: I notice that you have posted a few questions on Solaris area, If you are satisfied with a comment please accept them as answer.



0
 

Author Comment

by:ismahwati
ID: 6841013
do i have to shutdown the systems
first before doing the full backup.
0
 
LVL 38

Expert Comment

by:yuzh
ID: 6841053
You don't have to shutdown the system before doing the full backup. But it is good to do the full backup while there are not many process running.

It is nice to run it in single user mode, but you can do your backup in multiuser mode.

=====
yuzh

0
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!

 
LVL 5

Expert Comment

by:Nisus091197
ID: 6841412
Hi,

There is a script in my 'Scripts Repository' called backup_unix.sh

From my home page, click 'Scripts' on the left and then 'Scripts Repository'.  It is the first script.

Regards, Michael
http://www.omnimodo.com
0
 
LVL 4

Expert Comment

by:newmang
ID: 6842942
Look at www.backup-central.com for a script called hostdump.sh. Also if you are involved in backups you should really get a copy of Unix Backup and Recovery from the O'Reilly stable - it covers everything you ever wanted to know on the subject!

Cheers - Gavin
0
 

Author Comment

by:ismahwati
ID: 6843732
tq.it helps
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
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…
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

691 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