From owner-freebsd-questions@FreeBSD.ORG Tue Sep 2 08:59:31 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 653A316A4BF for ; Tue, 2 Sep 2003 08:59:31 -0700 (PDT) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5205943FBD for ; Tue, 2 Sep 2003 08:59:30 -0700 (PDT) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp104-131.lns1.adl1.internode.on.net [150.101.104.131])h82FxSia061152; Wed, 3 Sep 2003 01:29:28 +0930 (CST) Content-Type: text/plain; charset="iso-8859-1" From: Malcolm Kay Organization: At home To: Guy Van Sanden , freebsd-questions@freebsd.org Date: Wed, 3 Sep 2003 01:29:27 +0930 User-Agent: KMail/1.4.3 References: <1062511023.4165.5.camel@cronos.home.vsb> In-Reply-To: <1062511023.4165.5.camel@cronos.home.vsb> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200309030129.27754.malcolm.kay@internode.on.net> Subject: Re: rsync problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Sep 2003 15:59:31 -0000 On Tue, 2 Sep 2003 23:27, Guy Van Sanden wrote: > Hello > > I'm using rsync to sort of mirror two 40GB disks (once a day). > All partitions work as expected, but root is weird (and as you can see > below, I sort of made it too small). > > I use this command: > /usr/local/bin/rsync -ax --delete / /mirror/rootfs > > But this is what I'm getting: > df -m > Filesystem 1M-blocks Used Avail Capacity Mounted on > /dev/ad0s1a 154 71 70 51% / > /dev/ad1s1a 154 138 4 97% /mirror/rootfs > > So, there's a 67 MB difference between both. > I started out wite a cleanly formatted mirror (UFS2) > > My system is FreeBSD 5.0 RELEASE-p11 > > Thanks for any help > > Guy I expect rsync does not recognise hard linked files as such and makes=20 separate images of each directory link. Looking through /stand on my 4.8=20 system I see that this would create about 60Mb extra. You might do better with dump and restore: # cd /miiror/rootfs # dump -0 -a -f - / | restore -r -f - Malcolm