From owner-freebsd-questions Wed Dec 19 10:35: 9 2001 Delivered-To: freebsd-questions@freebsd.org Received: from out004pub.verizon.net (out004pub.verizon.net [206.46.170.104]) by hub.freebsd.org (Postfix) with ESMTP id 2FE2437B421 for ; Wed, 19 Dec 2001 10:34:37 -0800 (PST) Received: from verizon.net ([199.171.52.20]) by out004pub.verizon.net with ESMTP ; id fBJIYQY03641 Wed, 19 Dec 2001 12:34:27 -0600 (CST) Message-ID: <3C20DD79.3050800@verizon.net> Date: Wed, 19 Dec 2001 13:33:29 -0500 From: Simon Morton Reply-To: smorton@acm.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.6) Gecko/20011120 X-Accept-Language: en,pdf,zh-CN,de-DE,zh-TW,zh, zh-õ` MIME-Version: 1.0 To: Joe & Fhe Barbish Cc: FBSD Questions Subject: Re: CP command format question References: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG For recursive file tree copies, tar is your friend. cd /a tar cvf - custom | (cd /; tar xvf -) Simon Joe & Fhe Barbish wrote: > I have the following directory tree /custom/etc/ppp. > I populate it with the copies of files I have configured > in /etc and /etc/ppp. I use the following cp command to > make a floppy bkup. Cp -rpf /custom /a where /a is a > mount point for the floppy drive. The floppy ends up with > /custom/etc/ppp and all the files in each directory as > planed. When I lay down a FBSD system on a new machine I > want to mount the bkup floppy and copy the > /custom/etc/ppp tree back on to FBSD so it's at /custom/etc/ppp. > I want it placed at the same place that cd / goes to. > Cp -rpf /a / gives error can't copy to self > Cp -rpf /custom ~/ put it in /root > > What is the format of the cp command to do this? > > The next logical step is to copy the contents of > /custom/etc/ppp replacing the files in /etc and /etc/ppp. > What is the format of the cp command to do this? > > > Thanks > > Joe > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > -- http://www.SimonMorton.com smorton at acm dot org \rm -rf /bin/laden To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message