From owner-freebsd-questions@FreeBSD.ORG Tue Jun 29 15:48:01 2004 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 3A23416A4CF for ; Tue, 29 Jun 2004 15:48:01 +0000 (GMT) Received: from sdf.lonestar.org (ol.freeshell.org [192.94.73.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB29543D1D for ; Tue, 29 Jun 2004 15:48:00 +0000 (GMT) (envelope-from pieckiel@sdf.lonestar.org) Received: from sdf.lonestar.org (IDENT:pieckiel@sverige.freeshell.org [192.94.73.4]) by sdf.lonestar.org (8.12.10/8.12.10) with ESMTP id i5TFloXu002555; Tue, 29 Jun 2004 15:47:50 GMT Received: (from pieckiel@localhost) by sdf.lonestar.org (8.12.10/8.12.8/Submit) id i5TFlksk010217; Tue, 29 Jun 2004 11:47:46 -0400 (EDT) Date: Tue, 29 Jun 2004 11:47:46 -0400 From: "Kevin A. Pieckiel" To: "Cordula's Web" Message-ID: <20040629154746.GC27491@SDF.LONESTAR.ORG> Mail-Followup-To: Cordula's Web , freebsd-questions@freebsd.org References: <20040629135105.GB27491@SDF.LONESTAR.ORG> <20040629145654.BD55F4AC85@fw.farid-hajji.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040629145654.BD55F4AC85@fw.farid-hajji.net> User-Agent: Mutt/1.4.2.1i cc: freebsd-questions@freebsd.org Subject: Re: Snapshot question 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, 29 Jun 2004 15:48:01 -0000 On Tue, Jun 29, 2004 at 04:56:54PM +0200, Cordula's Web wrote: > Are you sure you are comparing against the correct snapshot? If you use > dump -L, the snapshot is created, opened, and immediately unlinked, > then the open file is saved. After dump exits, the snapshot file is > pysically released. > > Are you creating a snapshot manually? What commands do you use exactly? I'm actually using tar because my data store is larger than my tapes, and I can't find a way to get dump to change tapes for me automatically (something akin to tar's --new-volume-script parameter). The relevant commands I use are as follows (this just shows the /var parittion, but I make snapshots and mount all important partitions in /mnt/backup before I run tar): cd / mksnap_ffs /var /var/.snap/backup.snap mdconfig -a -t vnode -f /var/.snap/backup.snap -u 6 mount -r /dev/md6 /mnt/backup/root.var tar -cvf ${BACKUP_DEVICE} --totals --preserve \ --blocking-factor ${BACKUP_BLOCKSIZE} --block-number --multi-volume \ --new-volume-script ${PROGROOT}/next.sh \ --newer-mtime "${TIMESTAMP}" ${BACKUP_FLAGS} \ ${BACKUP_PATHS} >> ${LOGFILE} 2>&1 tar --compare -f ${BACKUP_DEVICE} --blocking-factor ${BACKUP_BLOCKSIZE} \ --multi-volume --new-volume-script ${PROGROOT}/next.sh >> ${COMPAREFILE} 2>&1 umount /mnt/backup/root.var mdconfig -d -u 6 rm -f /var/.snap/backup.snap Here, BACKUP_PATHS is set as follows: BACKUP_PATHS="/mnt/backup"