Solved

Full backup on solaris

Posted on 2002-03-04
6
687 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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SSH commands for Nas4free 21 428
Vmware Vswitch  VS  Redhat  Bridge 1 108
dot directory in FreeBSD??? 4 80
Unix Script: Loop over all days of a month 17 99
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…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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 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…

831 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