Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Dec 2001 13:33:29 -0500
From:      Simon Morton <simon.morton@verizon.net>
To:        Joe & Fhe Barbish <barbish@a1poweruser.com>
Cc:        FBSD Questions <questions@FreeBSD.ORG>
Subject:   Re: CP command format question
Message-ID:  <3C20DD79.3050800@verizon.net>
References:  <LPBBIGIAAKKEOEJOLEGOKEONCJAA.barbish@a1poweruser.com>

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




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