From owner-freebsd-questions@freebsd.org Wed Jul 1 14:35:39 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 813CD991947 for ; Wed, 1 Jul 2015 14:35:39 +0000 (UTC) (envelope-from paul@kraus-haus.org) Received: from mail-qk0-f182.google.com (mail-qk0-f182.google.com [209.85.220.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 453B51A1B for ; Wed, 1 Jul 2015 14:35:38 +0000 (UTC) (envelope-from paul@kraus-haus.org) Received: by qkhu186 with SMTP id u186so30677835qkh.0 for ; Wed, 01 Jul 2015 07:35:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to; bh=HEuzyEFd1o+OJiqtdD92m5b1Q/5DaWehove2mUh59mg=; b=JS7wHLXjZ3/bi35ZbmtSkiIftYas0PwmN00F1BoQ2yZnSZUvQc1A3NFKQefTBTRFYS ViPcAgATqOfA+kqEns6KP2wf+G7los8gXiXOELPEsIJEG+iwZQXRmwPQSQpBu+eaTr65 Nk0bzptE4QGuHBMdEcydlJYKIpXUa/0PjVUQrIfDJpM9ihgNrtyvrYqHJhGQkGbwaskS UKb7fFFpd48I4lqyUfBZ9oQ9e21hpBBQT3zZWyEwQghT20pyx1mpFj1HIH81+jKYXGkO d4b/g/IYq48LETxOh8GwnlMoI4aUWfD9am43PQnVzPHIuvqreu50yqO3Io7R2pUShNtp MSYQ== X-Gm-Message-State: ALoCoQk9qWBokmvB64NKIGsusVnSID/1XtfXUgtuMf5RHtD8yoJ2O6v/qk+4aYSWeviGeUyrKERw X-Received: by 10.140.93.50 with SMTP id c47mr34007251qge.72.1435761024346; Wed, 01 Jul 2015 07:30:24 -0700 (PDT) Received: from mbp-1.thecreativeadvantage.com (mail.thecreativeadvantage.com. [96.236.20.34]) by mx.google.com with ESMTPSA id o25sm1043964qkh.25.2015.07.01.07.30.22 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 01 Jul 2015 07:30:23 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: Clarification on simple, incremental ZFS backup From: Paul Kraus In-Reply-To: <861tgsaruw.fsf@WorkBox.Home> Date: Wed, 1 Jul 2015 10:30:24 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: <861tgsaruw.fsf@WorkBox.Home> To: FreeBSD Questions X-Mailer: Apple Mail (2.1878.6) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jul 2015 14:35:39 -0000 On Jul 1, 2015, at 10:13, Brandon J. Wandersee = wrote: > `zfs send -R @ | zfs receive = ` >=20 > There's a problem with this, though: when the filesystem is replicated > all its properties are retained (naturally), including mountpoints. So > the backup gets mounted over my local filesystem, making both > useless. There's no way that I can see to unmount the backup = filesystem > (as that's now mounted to '/'), and importing the filesystem again = after > a reboot just mounts it over the local filesystem again. What am I = doing > wrong, here? Can anyone point me in the right direction? Does anyone > here have a similar rsync-like backup scheme? Use zfs recv -e (or -d) to put the replicated copy under a different = mount point. I also set the mount point on my backup datasets to none to = prevent accidental changes. Remember you can also snapshot and replicate = the changes between snapshots to make the replication faster. We are = backing up servers via ssh tunnels and incremental sends / recvs -- Paul Kraus paul@kraus-haus.org