From owner-freebsd-hackers@FreeBSD.ORG Mon Oct 20 00:06:21 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F45A16A4B3 for ; Mon, 20 Oct 2003 00:06:21 -0700 (PDT) Received: from mizar.origin-it.net (mizar.origin-it.net [194.8.96.234]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D45743F85 for ; Mon, 20 Oct 2003 00:06:19 -0700 (PDT) (envelope-from helge.oldach@atosorigin.com) Received: from matar.hbg.de.int.atosorigin.com (dehsfw3e.origin-it.net [194.8.96.68])h9K764vG072041 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 20 Oct 2003 09:06:04 +0200 (CEST) (envelope-from helge.oldach@atosorigin.com) Received: from galaxy.hbg.de.ao-srv.com (galaxy.hbg.de.ao-srv.com [161.89.20.4])ESMTP id h9K763no050622; Mon, 20 Oct 2003 09:06:03 +0200 (CEST) (envelope-from helge.oldach@atosorigin.com) Received: (from hmo@localhost) by galaxy.hbg.de.ao-srv.com (8.9.3p2/8.9.3/hmo30mar03) id JAA06855; Mon, 20 Oct 2003 09:05:59 +0200 (MET DST) Message-Id: <200310200705.JAA06855@galaxy.hbg.de.ao-srv.com> In-Reply-To: <20031018.192827.118920091.imp@bsdimp.com> from "M. Warner Losh" at "Oct 19, 2003 3:28:27 am" To: imp@bsdimp.com (M. Warner Losh) Date: Mon, 20 Oct 2003 09:05:59 +0200 (MET DST) From: Helge Oldach X-Address: Atos Origin GmbH, Friesenstraße 13, D-20097 Hamburg, Germany X-Phone: +49 40 7886 7464, Fax: +49 40 7886 9464, Mobile: +49 160 4782517 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: hackers@freebsd.org Subject: Re: rsync vs installworld X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Oct 2003 07:06:21 -0000 M. Warner Losh: >I'm contemplating a binary distribution system for some systems that I >have. I'm ignoring kernel updates for the moment, and concentrating >on userland deployment. > >I'm thinking of doing something like: > >make buildworld >make installworld DESTDIR=/big/disk/freebsd/image >make mergemaster -D /big/disk/freebsd/mergemaster > >And then on each machine I want to update I'd do something like: > >sudo rsync --exclude etc --exclude usr/local --exclude boot \ > --delete -av host-server:/big/disk/freebsd/image / >sudo rm -rf /tmp/mergemaster >sudo scp host-server:/big/disk/freebsd/mergemaster /tmp/mergemaster >sudo mergemaster -someargs > >My question is: has anybody else tried this? If so, what bumps along >the way are there going to be? Rsync doesn't deal with file flags (chflags(2)). Thus my personal preference for updating machines is making installworld on a file system exported by the build server. Helge