System partition backup

Dear All,

I am using solaris 9,I want to take the backup all the partition of my system 1 by 1 and put it into tape device.

Below is the df -kh output

Filesystem             size   used  avail capacity  Mounted on
/dev/md/dsk/d1          11G   3.4G   7.9G    31%        /
/dev/md/dsk/d6          13G   3.0G    10G    23%       /usr
/proc                    0K     0K     0K     0%                   /proc
mnttab                   0K     0K     0K     0%                 /etc/mnttab
fd                       0K     0K     0K     0%                    /dev/fd
swap                    11G    96K    11G     1%               /var/run
/dev/dsk/c2t40d0s0      59G    44G    15G    75%     /data3
/dev/dsk/c2t40d0s3      30G   7.8G    21G    27%     /data1
/dev/dsk/c2t40d0s1      30G    16G    14G    53%     /data2
swap                    11G   872K    11G     1%    /tmp
/dev/dsk/c2t40d0s4      14G   5.2G   8.5G    39%     /user
/dev/md/dsk/d4         4.8G   1.5G   3.3G    32%        /application
/dev/md/dsk/d3          14G    12G   2.6G    83%       /oracle
/dev/md/dsk/d5          12G   7.4G   4.0G    65%        /opt
root@npmsun # 

Please help me out to take the backup of my system partition in best way so that i can recover it in case of any failure.

Thanks and Regards
Monoj Das

I can take the backup using tar command like..

tar -pcvf home_backup.tar.z /home

Will it be best technique to recover in case of a failure.

Regards
Monoj

i would suggest taking single user backup.

it is good that you are making backups of your content before a failure occurs, so you can recover more quickly. This is unix, so there will always be several ways to accomplish what you want. A few common tools to backup are: tar, cpio, and ufsdump - you may want to read the manpages on each to choose the one that is best for you.

I notice that you are using the Solaris LVM to make metadevices for some, but not all, of the filesystems. I would encourage you to invest some money in buying the additional drives needed to at least mirror those few un-protected filesystems. That would save you a lot of time, effort, and aggrevation to recover when a drive does fail in the future.

if you can take server offline for a while, dd is also good option.