Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Oct 2002 10:06:36 +0930
From:      Tim Peters <tim@lost.net.au>
To:        Beech Rintoul <akbeech@anchoragerescue.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Copying directories contents
Message-ID:  <20021002003636.GA72811@adelaide.edu.au>
In-Reply-To: <200210010955.35018.akbeech@anchoragerescue.org>
References:  <200210010955.35018.akbeech@anchoragerescue.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Oct 01, 2002 at 09:55:34AM -0800, Beech Rintoul wrote:
> I'm need to take the contents including dotfiles from about 300 user 
> directories and move them into another set of identical directories on 
> another filesystem. Is there an easy script to do this? I dont want to 
> overwrite the contents of the target directories just add to them.
> Both filesystems are mounted on the source machine.

i know people have already answered this, but noone mentioned the
incredibly simple:

# pax -rw /source /destination 

probably because it's not very portable - i only see pax(1) on
freebsd machines here.

-tim

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?20021002003636.GA72811>