Follows the responses from sun-managers re restores from tape
to working directories .. THANK YOU /Ev/
--- Forwarded mail from mdl@cypress.com (J. Matt Landrum)
>From cypress.com!mdl@cypress.com Thu Mar 26 08:15:18 1992
You can use tar (there is an example in the man page) for copying
directory structures, maintaining sym links
or try restore -i.
--- End of forwarded message from mdl@cypress.com (J. Matt Landrum)
--- Forwarded mail from vasey@issi.com (Ron Vasey)
>From issi!issi.com!vasey@cs.utexas.edu Thu Mar 26 13:22:04 1992
> Trying to save many hours of rebuilds of applications in / and usr,
Unfortunately, cp/rcp will fetch another copy of the real thing for each link.
Tar, cpio, and (r)dump preserve link structures and can be pipelined thru rsh.
If you wanted to copy just the symlinks, you might try something like:
sourcehost# cd <wherever>
sourcehost# find . -type l -print -xdev | cpio -o | \
rsh desthost 'cd <wherever>; cpio -idmv'
Hope this give you a good idea or two. Incidentally, you have just made a
good case for mounting all "value added" software under one or two areas
and letting automount worry about the links. Reduces the entire job to
managing a few automount tables, which can then be shared by many hosts
and imported easily when building a new system from scratch.
--- End of forwarded message from vasey@issi.com (Ron Vasey)
--- Forwarded mail from dworkin@merlin.rootgroup.com
>From dworkin@merlin.rootgroup.com Thu Mar 26 14:13:59 1992
: Trying to save many hours of rebuilds of applications in / and usr,
: CAN ANYONE advise me how to get the restores with symlinks back in
Just don't use the `r' or `R' options on restore. That's the part
that gets confused by a non-empty filesystem. Just make sure you
don't have anything new and important on the filesystem before you
start the restore -- restore *will* overwrite new files with
whatever's on the tape, if the names are the same.
So, basically, you want to use:
# restore xfb /dev/whatever block_size
or, if you're really paranoid, do it interactively:
# restore ifb /dev/whatever block_size
and then directly add the files and/or directory trees you want.
dworkin@rootgroup.com DoD #2525 Flamer's Hotline: (303) 678-5519
--- End of forwarded message from dworkin@merlin.rootgroup.com
--- Forwarded mail from vanandel@rsf.atd.ucar.EDU (Joe VanAndel)
>From vanandel@rsf.atd.ucar.EDU Thu Mar 26 14:22:40 1992
If I understand your question properly, you really want your dumped
partitions restored intact, without any original files from the SUNOS
distribution on CD.
If this is the case, you should boot the miniroot from the CD, newfs /
and /usr, and then do your restores onto these newly built file
systems. If booting directly from the CD is not easy for you, then
you should arrange to boot diskless from another server, so you can
restore your local / and /usr from tape.
Also, we avoid putting any locally developed software in / or /usr,
just to make these restores and system upgrades less painful. I keep
most of my locally developed or compiled software on a separate
partition, /local, with /usr/local linked to /local.
If you are interested, I have a locally developed utility, "dmirror",
that builds a "mirror image" from one directory tree to another,
including preserving both hard and symlinks. This presumes that you
can restore your /usr on some other partition, temporarily.
Hope this gets you started on the right track.
Joe VanAndel Internet:vanandel@ncar.ucar.edu
NCAR - ATD/RSF
P.O Box 3000 Fax: 303-497-2044
Boulder, CO 80307-3000 Voice: 303-497-2071
--- End of forwarded message from vanandel@rsf.atd.ucar.EDU (Joe VanAndel)
--- Forwarded mail from Matt Crawford <matt@oddjob.uchicago.edu>
>From matt@oddjob.uchicago.edu Thu Mar 26 14:23:02 1992
Doesn't the man page say not to do a restore "r" onto an unclean
disk? How about a restore "i", and select everything? I've done
that. (But not to my system partitions.)
________________________________________________________
Matt Crawford Astronomy & Astrophysics U of Chicago
--- End of forwarded message from Matt Crawford <matt@oddjob.uchicago.edu>
--- Forwarded mail from wallen@cogsci.UCSD.EDU (Mark R. Wallen)
>From wallen@cogsci.UCSD.EDU Thu Mar 26 17:10:12 1992
The normal way of restoring / and or /usr is to
copy the mini root into your (new) swap space and
use it to do the restore of the / and /usr partitions.
Mark Wallen Cogsci, UCSD
mwallen@ucsd.edu
--- End of forwarded message from wallen@cogsci.UCSD.EDU (Mark R. Wallen)
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:40 CDT