From owner-freebsd-questions Thu Mar 13 07:59:03 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id HAA04059 for questions-outgoing; Thu, 13 Mar 1997 07:59:03 -0800 (PST) Received: from jump.net (serv1-2.jump.net [204.238.120.19]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA04054 for ; Thu, 13 Mar 1997 07:58:58 -0800 (PST) Received: from benjamin.adonai.com by jump.net (8.8.4/BERK-6.8.11) id JAA08229; Thu, 13 Mar 1997 09:58:31 -0600 (CST) Message-Id: <1.5.4.32.19970313155810.006a9ce0@jump.net> X-Sender: adonai@jump.net X-Mailer: Windows Eudora Light Version 1.5.4 (32) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Thu, 13 Mar 1997 09:58:10 -0600 To: Doug White From: Lee Crites Subject: Re: Creating a directory link from one partition to another Cc: Dan Wolfe , "'questions@freebsd.org'" Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Doug's instructions looked to me to be right on target. I'm only going to add a comment to them... At 00:53 13-03-97 -0800, Doug White wrote: >Do the following: > >mkdir /usr/target/directory >chmod 655 /usr/target/directory >chown bin:bin /usr/target/directory >tar -cpf - -C /var/mail . | tar xpf - -C /usr/target/directory I have had some problems with this construct in the past, so I do tar copies like this: cd /source/directory tar -cf - . | ( cd /target/directory ; tar -xvf - ) I know, I know, the -C says to change to this directory before doing the work. It's a beautiful thing. And, I assume, it is valid on FreeBSD. But, unfortunately, it is not a *universal* thing. Since my scripts must work on multiple platforms, I can't use it. >The tar man page has details. THe original example didn't have the p >option on the left side, I added it just in case. Yes, this is a valuable option you should keep in mind when doing things, especially for other users, as root. It doesn't do any good if you move something and as a result change the permissions so it can't be used, right? (How many of us have been burned by that oversight?) Lee