From owner-freebsd-fs@FreeBSD.ORG Mon Jan 5 19:05:56 2015 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 77142A71 for ; Mon, 5 Jan 2015 19:05:56 +0000 (UTC) Received: from mail-ie0-x22e.google.com (mail-ie0-x22e.google.com [IPv6:2607:f8b0:4001:c03::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3DC272B56 for ; Mon, 5 Jan 2015 19:05:56 +0000 (UTC) Received: by mail-ie0-f174.google.com with SMTP id at20so19504879iec.5 for ; Mon, 05 Jan 2015 11:05:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsc.edu; s=ucsc-google; h=mime-version:date:message-id:subject:from:to:content-type; bh=QZrLRk6/Mqy02x7ajNhX5BwFZg2nLL5X5IzINVz4bOg=; b=dVWn3iw2htDgnPP6xsMNCuC3ZMih9antHKRec/BPhndzs/znkHtsAxiyyX7Du8LuCW qdnRFYqLvfvJX0A1YIdrnc2lGJHJWiGDdjPFGbVWjOgBb3Qz63HcoY7SQU3d5LXAMpk2 NdC9vMGMSZShWKu+RK1n4wb/CzrWHMSvxut5w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=QZrLRk6/Mqy02x7ajNhX5BwFZg2nLL5X5IzINVz4bOg=; b=lMebpz5s4XjqCzn9wLX0+5OowIt9w+g/BLBfwDxGsEaXLrg+Tir4t7j4baBzCd0Yyt vUDEe3KLWV0fpaPWcroL1loJmRaaiOGIxaORlSqjq0cu2SDdsYQaatqYnqxKoWsZkzk+ 9QWraQJWuZfV/p9izXlFca6UGPiZNtcn317lvwl/H121PniJdmMcl/Yz3ZN7NPq5xhSk VjWD7c3OsTtM2bHsbfRJe2vW5avUyBXeTSHSC/CGYSZkpCXEisHaa3FsWqGSAMQDgWaf G6Tgd2HNTGuGRTIcP+aijrz/6KSaRRDuvVeteM73snxuqovOgjyWuU1Y+ZQyJ9qfVDvq EkGA== X-Gm-Message-State: ALoCoQldx2HPrCV0uzvZrdPfyJ/pan7TIy+tIz674v/kVJ1Iw3rZvSWR1QQvjJx/QaJK8xIPLWAE MIME-Version: 1.0 X-Received: by 10.50.30.3 with SMTP id o3mr12332789igh.44.1420484755765; Mon, 05 Jan 2015 11:05:55 -0800 (PST) Received: by 10.43.156.75 with HTTP; Mon, 5 Jan 2015 11:05:55 -0800 (PST) Date: Mon, 5 Jan 2015 11:05:55 -0800 Message-ID: Subject: ZFS Send / Receive Recursively Without Properties From: Tim Gustafson To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jan 2015 19:05:56 -0000 Hi, We're using ZFS send/receive to maintain off-site snapshots of system "A" onto system "B" for redundancy. The data on system "B" is read-only, and would only ever be used to transfer data back to system "A" in the event of a hardware failure. We're currently this command to achieve this: /sbin/zfs send -R -I 'tank/root@2015-01-04' 'tank/root@2015-01-05' | /usr/bin/ssh -i /root/.ssh/id_rsa 'user@backup-server' /usr/local/bin/sudo /sbin/zfs receive -v -F -u -n 'tank/notbackedup/source-server/root' This works well, except that it sets the mountpoints on server "B" server's copy of the file systems to whatever they were on the source system, which overwrites server "B"'s root file system when we send the root file system from server "A". If I drop the -R parameter to ZFS send, then it does not overwrite the mountpoints, but it also does not destroy the non-existent snapshots on the server "B". Snapshots on server "A" are automatically destroyed by a script after 7 days, and we don't want to accumulate snapshots on server "B" that have been destroyed from server "A". We also would prefer to not run a snapshot purging script on server "B" because ultimately this solution will be used for multiple source servers, and each of them have different snapshot retention policies that I'd like to not have to maintain in two separate places. Is there any way to recursively send (and destroy) snapshots on the server "B" without also copying the mountpoint property? -- Tim Gustafson tjg@ucsc.edu 831-459-5354 Baskin Engineering, Room 313A