LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   solaris10 backup (https://www.linuxquestions.org/questions/solaris-opensolaris-20/solaris10-backup-4175641029/)

qrange 10-24-2018 06:43 AM

solaris10 backup
 
I'd like to backup few Solaris 10 servers with tar (everything, including OS).
is it possible to backup all the filesystem (ufs) metadata so that it can be restored and boot?
I would use dd or similar to backup slices info, etc. But also need a way to preserve everything else that tar skips.
Its a sparc version.

Thanks.

TB0ne 10-25-2018 06:56 AM

Quote:

Originally Posted by qrange (Post 5918661)
I'd like to backup few Solaris 10 servers with tar (everything, including OS).
is it possible to backup all the filesystem (ufs) metadata so that it can be restored and boot?
I would use dd or similar to backup slices info, etc. But also need a way to preserve everything else that tar skips.
Its a sparc version.

Thanks.

Not sure about "bootable" (it's been a little bit since I've tried it), but flar is what you're after:
https://docs.oracle.com/cd/E18752_01...create-66.html
https://docs.oracle.com/cd/E23823_01...803/gkcay.html

czezz 12-12-2018 09:38 AM

Why not to use "ufsdump" instead of tar?
But either way, to restore/install bootblock you would need something like this (booted from Solaris install CD/DVD):
Code:

# cd /tmp/slice0/usr/platform/'uname -m'/lib/fs/ufs
# installboot bootblk /dev/rdsk/c0t0d0s0

To backup metadate:
Code:

prtvtoc /dev/rdsk/c1t0d0s2 > /mnt/solaris/`date +%Y-%m-%d`_`uname -n`_c1t0d0.vtoc


All times are GMT -5. The time now is 04:02 AM.