On Thu, Oct 16, 2003 at 01:06:14PM -0700, Bob Miller wrote:
> Bob Crandell wrote:
>
> > I'm trying to rescue a guy's server. It has a couple of hundred
> > accounts on it. I ran this script from kbob:
>
> Yeah, sure, now it's MY fault! (-:
Yes it is bob.
>
> > (cd ${SOURCE}; /bin/tar cvf - .) | (cd ${DESTIN}; /bin/tar xvfp -)
>
> Maybe you weren't root when you ran it?
There is no 'p' option in the source that says to "preserve permissions"
in the tar ball. You use them on export, but they aren't there.
> A terser way to do that is this.
>
> # cp -a $SOURCE $DESTIN
cp -a is the same as "-dpR" which is --no-dereference,
--preserve=mode,ownership,timestamps, --recursive.
I use it all the time.
> I didn't know about -a until recently. It wasn't in the cp command
> long ago.
Neither was GNU.
Cory
--
Cory Petkovsek Adapting Information
Adaptable IT Consulting Technology to your
(541) 914-8417 business
[EMAIL PROTECTED] www.AdaptableIT.com
_______________________________________________
EuG-LUG mailing list
[EMAIL PROTECTED]
http://mailman.efn.org/cgi-bin/listinfo/eug-lug