ufsdump

Experts,

Before patching am advised to take backup :

so am going with:

ufsdump -0uf /dev/rmt0 / ---> to take the whole / bkp to tape. 

some servers have /var in diff slice, In this case whether i need to take backup of /var also in tape?

ufsdump -ouf /dev/rmt0 /var ---> to take /var as sep slice bkp to tape.

Kinldy help.

I don't think you would need to do var separately if its mounted in /

but I believe that's not the way ufsdump work at all. it takes devices as input, not directories.
so instead of / you need something like /dev/rdsk/C0t3d0s0

(and yes, in that case you'd need to dump /var separately but using its 'slice name')

1 Like

If our entire os image resides on silce0 then follow :

ufsdump -0uf /dev/rmt0 /dev/rdsk/C0t3d0s0 --> back up whole root fs ?

If our /var resides on separate slice then follow:

ufsdump -ouf /dev/rmt0 /dev/rdsk/C0t3d0s6 ---> back up /var slice ?

Now is it correct orange ?

Thanks

I think so. but, honestly, I never used ufsdump. so better wait for confirmation from someone more experienced.

also, think you need to unmount the slices that are being copied. so you might need booting from liveCD or similar.

another option is to pull out the hard drive and backup the entire drive with dd.