Backup / restore

Hi.... everyone could help me to understand how to do a backup of my servers .. operating systems is sun solaris 8 .
I have some question about ....

1) Is better backup phisical disk or partition ???
i sow the command is ufsdump 0cfu /expbck/bcksunver/c0t0d0s5 dev/dsk/c0t0d0s5 to backup single partition is correct ?
2) How i can determinate the logical partition on the disk which is the command to display it ?
3) if i have problem with the disk how i can restore the backup of the partition or of the phisical disk ?

Tnks in advance :confused:

There is no such thing as a logical and physical partitions in Solaris. I think you may mean partitions and volumes. In that case, remember that volume management systems store volume/disk group specific data in private regions of the disk and spreads copies of it accross disks for redundancy. It is important to backup your volume configuration data and your system/applicaiton data. If you are not runing a volume manager then you can just rely on ufsdump.

If you lose your vol config data (pretty hard since it is spread across multiple disks), you will not be able to recreate your volumes on a replacement disk and you will have to recite thrm from memory.

Question 2: Commands differ with different vol managers VXvm uses vxprint Disk Suite uses metastat.

Q3: read up on ufsrestore

I think 'logical partition' was intended to mean mount point.

to find out where a disk is mounted you can use this:

df -k | awk '/^\/dev/ {print $1" is mounted on "$NF}'

tnk!!!

I'am sorry but i'am not expert could you help me plse ?????

i must back this system it is correct the following ???

command df : result

nifsunwrk:/export/home/netdemo> df
/ (/dev/dsk/c1t0d0s0 ): 222268 blocks 378150 files
/proc (/proc ): 0 blocks 29949 files
/dev/fd (fd ): 0 blocks 0 files
/etc/mnttab (mnttab ): 0 blocks 0 files
/var/run (swap ):13709216 blocks 888212 files
/tmp (swap ):13709216 blocks 888212 files
/nif (/dev/md/dsk/d3 ):18467950 blocks 2920674 files
/opt (/dev/dsk/c1t0d0s4 ): 4666888 blocks 559042 files
/usr/local (/dev/md/dsk/d0 ): 5008048 blocks 604001 files
/export/home (/dev/md/dsk/d1 ): 3173910 blocks 636026 files
/export/home/netdemo(/dev/md/dsk/d6 ):36032940 blocks 4210866 files
/usr/local/repository(/dev/md/dsk/d2 ): 1079510 blocks 2177913 files
/nica/nif/data/arclogs(/dev/md/dsk/d5 ): 8883238 blocks 640643 files
/nica/nif/nifw/debug(/dev/md/dsk/d4 ):10304804 blocks 641998 files
/export/home/netdemo/source(nifxwrk:/u/netdemo): 281032 blocks 172973 files
/export/home/netdemo/aixver(nifxver:/home/neticon/last): 1067040 blocks 822287 files
/export/home/netdemo/aixv55(nifxver:/home/neticon/v55/last): 417824 blocks 821554 files

to backup the entire system i lunch the command :

ufsdump 0cfu /expbck/bcksunver/c1t0d0s0 /dev/rdsk/c0t0d0s0
ufsdump 0cfu /expbck/bcksunver/d3 /dev/rdsk/d3
ufsdump 0cfu /expbck/bcksunver/c1t0d0s4 /dev/rdsk/c1t0d0s4
ufsdump 0cfu /expbck/bcksunver/d0 /dev/rdsk/d0
ufsdump 0cfu /expbck/bcksunver/d1 /dev/rdsk/d1
ufsdump 0cfu /expbck/bcksunver/d6 /dev/rdsk/d6
ufsdump 0cfu /expbck/bcksunver/d2 /dev/rdsk/d2
ufsdump 0cfu /expbck/bcksunver/d5 /dev/rdsk/d5
ufsdump 0cfu /expbck/bcksunver/d4 /dev/rdsk/d4

is correct ??? i'am sure that a have the complete system backup ???
if my system crash i have an a valid backup to restore the environment ???

tnk.....

Sorry for my bad english :-(((((

Post a listing of your /etc/vfstab file
Then only it can be verified correctly