Solved

Full backup on solaris

Posted on 2002-03-04
6
683 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
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
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.

932 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

12 Experts available now in Live!

Get 1:1 Help Now