From owner-freebsd-questions Wed Dec 19 10:17:12 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.mango-bay.com (mail.mango-bay.com [208.206.15.12]) by hub.freebsd.org (Postfix) with ESMTP id 327A737B405 for ; Wed, 19 Dec 2001 10:17:10 -0800 (PST) Received: from barbish ([63.70.155.115]) by mail.mango-bay.com (Post.Office MTA v3.5.3 release 223 ID# 0-52377U2500L250S0V35) with SMTP id com for ; Wed, 19 Dec 2001 13:19:04 -0500 From: "Joe & Fhe Barbish" To: "FBSD Questions" Subject: CP command format question Date: Wed, 19 Dec 2001 13:17:07 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal 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 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