Transferring ports

Mike Meyer mwm-keyword-freebsdhackers2.e313df at mired.org
Thu Mar 13 22:30:04 UTC 2008


On Fri, 14 Mar 2008 00:02:42 +0300 Dmitry Marakasov <amdmi3 at amdmi3.ru> wrote:

> Actually, I've already had an idea of utility with pretty similar
> functionality for a long time. The utility would copy directory
> hierarchies recursively based on file include/exclude list, like this:

You mean like rsync?

> +/{etc,bin,sbin,lib}
> +/usr
> -/usr/local
> +/usr/local/{bin,sbin,libexec,share,lib}
> -/usr/share/locale
> +/usr/share/locale/ru_RU*
> 
> so `my_cool_copy_utility / /path/to/jail` will copy /etc,/bin,/sbin,/lib
> and /usr dirs to jail, but in /usr/share/locale will only copy
> russian locales, but no others, and in usr/local it won't copy
> man, include and other dirs not needed in a jail.

Yeah, rsync can do that. The syntax is a little (or maybe a lot)
different, though.

> Such an utility is something I still might start working on.

If you've already checked out rsync and found it wanting, my apologies
for wasting your time. If not, it's probably worth a look.

    <mike
-- 
Mike Meyer <mwm at mired.org>		http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.


More information about the freebsd-hackers mailing list