From owner-freebsd-questions@FreeBSD.ORG Sat Nov 21 16:14:19 2009 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 2F181106566B for ; Sat, 21 Nov 2009 16:14:19 +0000 (UTC) (envelope-from freebsd@optimis.net) Received: from mail.optimis.net (mail.optimis.net [69.104.191.124]) by mx1.freebsd.org (Postfix) with ESMTP id 027448FC12 for ; Sat, 21 Nov 2009 16:14:18 +0000 (UTC) Received: from marvin.optimis.net (marvin.optimis.net [192.168.1.3]) by mail.optimis.net (8.14.3/8.14.2) with ESMTP id nALGEFUE009785; Sat, 21 Nov 2009 08:14:15 -0800 (PST) (envelope-from freebsd@optimis.net) Received: from marvin.optimis.net (localhost [127.0.0.1]) by marvin.optimis.net (8.14.3/8.14.3) with ESMTP id nALGEFag068208; Sat, 21 Nov 2009 08:14:15 -0800 (PST) (envelope-from freebsd@optimis.net) Received: (from george@localhost) by marvin.optimis.net (8.14.3/8.14.3/Submit) id nALGEFhG068207; Sat, 21 Nov 2009 08:14:15 -0800 (PST) (envelope-from freebsd@optimis.net) Date: Sat, 21 Nov 2009 08:14:15 -0800 From: George Davidovich To: freebsd-questions@freebsd.org Message-ID: <20091121161415.GA68037@marvin.optimis.net> References: <4B0562A4.5050405@bah.homeip.net> <4B056636.6050309@infracaninophile.co.uk> <4B075AAA.80205@bah.homeip.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B075AAA.80205@bah.homeip.net> User-Agent: Mutt/1.5.19 (2009-01-05) Cc: Bernt Hansson Subject: Re: Dump X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Nov 2009 16:14:19 -0000 On Sat, Nov 21, 2009 at 04:12:42AM +0100, Bernt Hansson wrote: > Matthew Seaman skrev: > > Bernt Hansson wrote: > > > > > > I've been testing backups with dump, works well BUT > > > -L does not work. For example > > > > > > dump -0 -a -u -L -f /mnt/dump.home.full /dev/ad0s2d > > > > I believe that you need to tell dump the mount point of the file system in > > order for it to create a snapshot, rather than the device file for the > > partition. (ie. snapshotting only makes sense on a mounted read-write > > filesystem). > > > > Also, if you're dumping a snapshotted FS to a local file, then bump up the > > cachesize to improve performance a lot. Add '-C 32' to your command-line. > > Ok. I've tested this > dump -1 -a -u -L -C 64 -h 0 -f /usr/home/bernt/disk2/dump.backup.home.2 > /usr/home > dump -1 -a -u -L -C 64 -h 0 -f /usr/home/bernt/disk2/dump.backup.home.2 > /usr/home > > The error is > mksnap_ffs: Cannot create /usr/home/.snap/dump_snapshot: Invalid argument > dump: Cannot create /usr/home/.snap/dump_snapshot: No such file or directory Aargh. Must have missed the above when I last replied. That error message indicates you're running dump without proper privileges. Run dump as root, or add yourself to the operator group: pw groupmod operator -m bernt -- George