From owner-freebsd-hackers Sun Nov 10 5: 5:46 2002 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 058D437B401 for ; Sun, 10 Nov 2002 05:05:45 -0800 (PST) Received: from HAL9000.homeunix.com (12-232-220-15.client.attbi.com [12.232.220.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E92043E88 for ; Sun, 10 Nov 2002 05:05:44 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id gAAD5ODN002513; Sun, 10 Nov 2002 05:05:24 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id gAAD5NpF002512; Sun, 10 Nov 2002 05:05:23 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Date: Sun, 10 Nov 2002 05:05:23 -0800 From: David Schultz To: Nick Rogness Cc: Poul-Henning Kamp , Larry Sica , freebsd-hackers@FreeBSD.ORG Subject: Re: Filesystem corruption Message-ID: <20021110130523.GA2417@HAL9000.homeunix.com> Mail-Followup-To: Nick Rogness , Poul-Henning Kamp , Larry Sica , freebsd-hackers@FreeBSD.ORG References: <45812.1036861207@critter.freebsd.dk> <20021110022411.N75268-100000@skywalker.rogness.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021110022411.N75268-100000@skywalker.rogness.net> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake Nick Rogness : > I've been running dump for years on live filesystems with FreeBSD > and never had a problem. I was not aware of any snapshot feature > available for 4.X-STABLE (only 5.0)? > > umounting a live filesystem to back it up is not a solution. What > should I be using to backup a live filesystem? In 5.0-CURRENT, you can use dump on a snapshot to get a completely consistent view of the filesystem. But when you dump a filesystem as it's changing, you get an inconsistent view of its metadata, and possibly a corrupted backup. One of many solutions is to use tar. You'll get a good backup, even though it won't exactly be an atomic snapshot. (File contents might change during the operation.) See the archives for more discussions of backup programs. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message