From owner-freebsd-questions@FreeBSD.ORG Sun Oct 23 19:08:17 2011 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 366EB106564A for ; Sun, 23 Oct 2011 19:08:17 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id EAFF48FC1A for ; Sun, 23 Oct 2011 19:08:16 +0000 (UTC) Received: from r56.edvax.de (port-92-195-104-16.dynamic.qsc.de [92.195.104.16]) by mx01.qsc.de (Postfix) with ESMTP id 543F63D510; Sun, 23 Oct 2011 21:08:15 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id p9NJ8E4M002252; Sun, 23 Oct 2011 21:08:14 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 23 Oct 2011 21:08:14 +0200 From: Polytropon To: Bill Tillman Message-Id: <20111023210814.698a51b6.freebsd@edvax.de> In-Reply-To: <1319375054.79311.YahooMailNeo@web36507.mail.mud.yahoo.com> References: <000001cc90c0$a0c16050$e24420f0$@org> <4EA2CE72.5030202@cran.org.uk> <20111022161242.11803f76.freebsd@edvax.de> <4EA31702.7080406@locolomo.org> <1319375054.79311.YahooMailNeo@web36507.mail.mud.yahoo.com> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "freebsd-questions@freebsd.org" Subject: Re: Need to Backup Using Dump X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Oct 2011 19:08:17 -0000 On Sun, 23 Oct 2011 06:04:14 -0700 (PDT), Bill Tillman wrote: > I have two FreeBSD 8.2-STABLE servers running NFS. I have > tons of files on Server A that I want to backup to a big > drive on Sever B. Server B nfs_mounts one of the filesystems > on Server A to /mnt. So if I wanted to make a backup of > the filesytem on Server A to Server B I tried: > > dump -d /home/my_home/backups/20111024 /mnt > > but each time I try this it tells me that filesystem /mnt > is unknown. /mnt is not in /etc/fstab. I manually mounted > this via NFS and that's where all the files I want to backup > are accessible to the command line on Server B. What am I > missing? The dump + restore mechanism operates on device files representing a file system, not a _mounted_ file system, as source. If, for example, your /home partition is /dev/ad0s1e, and you've mounted the target at /mnt, then you could do: # cd /mnt # dump -0 -f - /dev/ad0s1e | restore -r -f - Therefore /home has to be unmounted (or add flag -L to dump from mounted file systems). But note that this will dump the _complete_ file system's content to /mnt as dump cannot be "more selective" here. An alternative is to use rsync or cpdup where you can explicitely address a subtree to be copied instead of the whole file system. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...