Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Dec 2001 13:17:07 -0500
From:      "Joe & Fhe Barbish" <barbish@a1poweruser.com>
To:        "FBSD Questions" <questions@FreeBSD.ORG>
Subject:   CP command format question
Message-ID:  <LPBBIGIAAKKEOEJOLEGOKEONCJAA.barbish@a1poweruser.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?LPBBIGIAAKKEOEJOLEGOKEONCJAA.barbish>