Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cpio question

Status
Not open for further replies.

tekpchak

Technical User
Jan 5, 2005
17
US
All,
I currently have a problem. I need to backup a solaris 7 machine running on a sparc station. This workstation is then being moved to an Ultra 10 workstation. I need to backup the whole system running on the sparc station. Since no one knows how to build it from scratch. My question is how do I do it? I guess the best answer is cpio. I am however new to solaris and find the man pages a bit cryptic at times. I guess it seems like it would be broken into two steps. The first is taking the cpio image. Then next would be recreating it. So at first I guess I would do
cpio . | -H odc -ov > /directory/ofimage
However the next step I am a bit lost on. If anyone has any help would be greatly appreciated.

Thanks,
Jason
 
Jason;

what model sparc station?

Do you have a solais 7 cd?

I do not think that you can do what you want. You are trying to dump one type of architecture and restore to another type.

The ultra10 is sun4u, where sparcs are another type of architecture.

You will probably need to load solaris 7 on your ultra10 then restore what you need(not the complete dump).

I use ufsdump for backup and ufsrestore to restore, do a man ufsdump and ufsrestore. There is also plenty of information on the web about it. You may even find past posts on this.

Got to run but will follow up on this later.

Thanks

CA


 
I am at home now. I am not positive at to what kind of workstation it is. However, I believe it is sparc station 10.
 
The sparc10 is a sun-4m architecture, vs ultra10 sun4u.
Diff are SCSI vs IDE, pathing, etc...

What I would do(not saying this is the best way) is back up needed filesystems on your sparc 10 using ufsdump to tape;
Then do a clean install of solaris 7 on the ultra10, create mount points and restore what you need. With ufsrestore you can run in interactive mode and pick and choose what you want to restore.

ufsdump example;

Backup file system using ufsdump
ufsdump 0cvf /dev/rmt/0 /dev/rdsk/c0t0d0s0
or
ufsdump 0cvf /dev/rmt/0 /usr

To restore a dump with ufsrestore
ufsrestore rvf /dev/rmt/0

ufsrestore in interactive mode allowing selection of individual files and directories using add , ls , cd , pwd and extract commands .
ufsrestore -i /dev/rmt/0

I have not used cpio in many years so no advice on how to use it. Do a man on cpio if you want to use that.

CA
 
I've used cpio twice in 10 years! Only recently to install Oracle from a cpio file :-

cpio –ivcdum < 9204_solaris64_release.cpio
reads/restore in file 9204*cpio file with various options

To confirm your system
uname -a
arch -k
mach
prtdiag
showrev -s yourhostname

If your system was already built you could use
tar xvf new.tar . (to save user data)
and restore with "tar cvf new.tar
 
Marrow, you have those tar commands the wrong way around. 'x' is extract from tar file, 'c' is create tar file.

Annihilannic.
 
Yes of course they're the wrong way around Annihilannic, aplogies all. (tar cvf new.tar . to copy & tar xvf new.tar to extract)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top