From owner-freebsd-isp Thu Jul 27 18:48:31 2000 Delivered-To: freebsd-isp@freebsd.org Received: from workhorse.iMach.com (workhorse.iMach.com [206.127.77.89]) by hub.freebsd.org (Postfix) with ESMTP id 5823137C187 for ; Thu, 27 Jul 2000 18:48:27 -0700 (PDT) (envelope-from forrestc@imach.com) Received: from localhost (forrestc@localhost) by workhorse.iMach.com (8.9.3/8.9.3) with ESMTP id SAA18938; Thu, 27 Jul 2000 18:50:45 -0600 (MDT) Date: Thu, 27 Jul 2000 18:50:44 -0600 (MDT) From: "Forrest W. Christian" To: Enno Davids Cc: sgcccdc@citec.qld.gov.au, danp@erinyes.net, pab@purplecat.net, freebsd-isp@FreeBSD.ORG Subject: Re: sendmail question (sorry if this is the wrong list) In-Reply-To: <200007280137.LAA15708@peppermint.national.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, 28 Jul 2000, Enno Davids wrote: > | > Is it guaranteed not to stuff up permissions/ownerships? > | > | Guarantee? You've got to be kidding :) > | > | I think it is LESS LIKELY to do so. > > Ordinarily this is why us old timers use tar or cpio. Something like this: > > cd srcdir ; tar -cf - . | (cd destdir ; tar -xvpf - ) > > Note the use of the 'p' flag to preserve perms/owners/etc. It looks like under FreeBSD the move is safe.... According to the man page anyways. (I too have used the tar on systems where the move was not safe) I've also used cp then rm -r with the appropriate flags... That way you can make sure everything works and cp tends to be a lot better.. - Forrest W. Christian (forrestc@imach.com) AC7DE ---------------------------------------------------------------------- iMach, Ltd., P.O. Box 5749, Helena, MT 59604 http://www.imach.com Solutions for your high-tech problems. (406)-442-6648 ---------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message