Computing.Net > Forums > Solaris > Backup and restore of solaris m/c

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Backup and restore of solaris m/c

Reply to Message Icon

Name: Anurag
Date: September 30, 2004 at 09:18:41 Pacific
OS: Solaris 2.5.1
CPU/Ram: 125MB RAM
Comment:

Hi,
Can anybody tell me how to take the backup of a Solaris machine and restore it on another Solaris machine without
re-installing the OS. Commands for doing the same will be appreciated.

Thanks,
Anurag Tangri




Sponsored Link
Ads by Google

Response Number 1
Name: sboffin
Date: October 13, 2004 at 12:38:36 Pacific
Reply:

Here it goes

edit the /etc/vfstab file and not all partitions to backup. The ones that start with /dev/rdsk...

For each partion do a
ufsdump 0ufc /dev/rmt/0un /dev/rdsk...
Each time you run the ufsdump the next partition is appended to the tape so you will have partition 1,2,3 ... on the tape

Note: /dev/rmt/oun is your tape drive
0ufc is for a full backup

This shoould put everything on the tape.

To restore it do a
cd /partition_to_restore
ufsrestore rvfs /dev/rmt/0 <number>
<number> is the partition number mentionned above "1,2,3.."
Do this for all partitions

If you need to do a restore of / because it it broken the do the following

Boot from the cdrom (boot cdrom)
newfs /dev/rdsk/c0t0d0s0 (root partion)
fsck /dev/rdsk/c0t0d0s0
mount /dev/dsk/c0t0d0s0 /a
cd /a
ufsrestore rvfs /dev/rmt/0 <number>
<number> is the location of / on the tape)
rm restoresymtable

Type uname -i copy the result of this command in the XXXX bellow.
cd /usr/platform/XXXX/lib/fs/ufs
installboot bootblk /dev/rdsk/c0t0d0s0
cd /
umount /a
fsck /dev/rdsk/c0t0d0s0
init 6 or reboot


HOPE this helps let me know how it goes


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: Backup and restore of solaris m/c

pros and cons of solaris www.computing.net/answers/solaris/pros-and-cons-of-solaris/2630.html

solaris can't ping with windows www.computing.net/answers/solaris/solaris-cant-ping-with-windows/3280.html

Backup/mirror of legacy system www.computing.net/answers/solaris/backupmirror-of-legacy-system/4433.html