From owner-freebsd-questions Fri Aug 16 7:21:28 2002 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 C6D9137B400 for ; Fri, 16 Aug 2002 07:21:25 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3EB3143E77 for ; Fri, 16 Aug 2002 07:21:25 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.5/8.12.5) id g7GEL4l2022744; Fri, 16 Aug 2002 09:21:04 -0500 (CDT) (envelope-from dan) Date: Fri, 16 Aug 2002 09:21:04 -0500 From: Dan Nelson To: "Roger 'Rocky' Vetterberg" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: syncing local filesystems Message-ID: <20020816142104.GA74231@dan.emsphone.com> References: <3D5CE948.6020604@401.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D5CE948.6020604@401.cx> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Aug 16), Roger 'Rocky' Vetterberg said: > I have a machine that stores some vital information. This machine has > to be restored asap in case of a failure, so the usual solution with > restoring from backup tapes is too slow to be usefull here. Right > now, Im testing a machine that has 2 identical drives, ad0 and ad2. > They are both mounted in sleds, so in case of a disk crash the disk > can be replaced in seconds. > > Since the changes in the filesystem are very small (I would estimate > something like 5-15megs of new data and maybe 10 changed files > between dumps) Ive been looking at utilities such as rsync and ssync. > rsync seems to be mostly aimed at network replication, and ssync > seems to be just fine if you want to sync directories, but not entire > drives. Even though rsync was originally a network-oriented tool, it does work fine replicating a local disk to a local disk. rsync -a --delete should do the trick for you. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message