From owner-freebsd-questions Fri Feb 14 15:02:16 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA08387 for questions-outgoing; Fri, 14 Feb 1997 15:02:16 -0800 (PST) Received: from andrew.Ngbert.org (root@NGBERT.RES.CMU.EDU [128.2.92.138]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA08357 for ; Fri, 14 Feb 1997 15:02:02 -0800 (PST) Received: from localhost ([[UNIX: localhost]]) by andrew.Ngbert.org (8.8.5/8.7.3) with SMTP id SAA14094; Fri, 14 Feb 1997 18:01:27 -0500 (EST) Date: Fri, 14 Feb 1997 18:01:26 -0500 (EST) From: Andrew Y Ng To: Shawn Ramsey cc: questions@freebsd.org Subject: Re: tar ownerships? In-Reply-To: Message-ID: Organization: Carnegie Mellon University MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk well, u need to specify the '-p' flag to preserver the ownership and permisison, imho. /ayn On Fri, 14 Feb 1997, Shawn Ramsey wrote: > Last night, I backed up all the important information on one of our > FreeBSD servers, so I could upgrade it to 2.2-GAMMA do to the security > flaw in 2.1.5, and the fact it would only boot from floppy. I used tar to > back everything up, then put all the files onto another FBSD machine, then > ftp'd them back over after this system was back up. Everything worked > fine, except the home directorys didnt keep the ownership permisions?! > Anyone know why this would happen? I used the following command to back it > up : > > tar cvfz home.tgz /usr/home/* > > every other directory kept the proper ownerships and > permissions(/usr/home did kepp the right file permissions though..) > > thanks for any ideas.. since the /usr/home dir. isnt TOO big(maybe 30-40 > users) I had to change the ownerships by hand. :( When upgrading to 2.2R I > don't want to have to do that again! :) > > > >