From owner-freebsd-questions@FreeBSD.ORG Wed Dec 5 13:58:37 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6A6A16A469 for ; Wed, 5 Dec 2007 13:58:37 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.ilk.org (dsl092-078-145.bos1.dsl.speakeasy.net [66.92.78.145]) by mx1.freebsd.org (Postfix) with ESMTP id 948B813C469 for ; Wed, 5 Dec 2007 13:58:37 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: by be-well.ilk.org (Postfix, from userid 1147) id 7092828457; Wed, 5 Dec 2007 08:58:36 -0500 (EST) To: stevefranks@ieee.org References: <539c60b90712041638s78b4e40fn67434f2dce5e27e7@mail.gmail.com> From: Lowell Gilbert Date: Wed, 05 Dec 2007 08:58:36 -0500 In-Reply-To: <539c60b90712041638s78b4e40fn67434f2dce5e27e7@mail.gmail.com> (Steve Franks's message of "Tue\, 4 Dec 2007 17\:38\:20 -0700") Message-ID: <44y7c95jlf.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.99 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: User Questions Subject: Re: copying just / (not /tmp, /usr, etc) (rsync -x failed) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: User Questions List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Dec 2007 13:58:37 -0000 "Steve Franks" writes: > I have / on one slice, and [usr,tmp,var] on others. I want to move > just / to a new disk, which seemed to be what rsync -x ("do not cross > filesystems") was intended for. It failed, however, as df shows 20k > blocks in /, and rsync filled up the target slice with 50k blocks, so > obviously it blew right past the 'end' of / - did I miss something? Is > there no other way except to umount [tmp,usr,var]? You missed lots of ways. The canonical method is dump(8)/restore(8). There are many other methods as well. For rsync, what you missed was probably the "-H" option (i.e., you didn't copy from other filesystems, you just ended up with separate copies of files that were hard linked on the original). Even with rsync, though, you won't get an exact copy. I'd recommend dump for copying filesystems; that's what it's for.