From owner-freebsd-questions@freebsd.org Tue Sep 27 16:48:16 2016 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 81E49BEC145 for ; Tue, 27 Sep 2016 16:48:16 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [IPv6:2607:f3e0:80:80::2]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "smarthost.sentex.ca", Issuer "smarthost.sentex.ca" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 38395C70 for ; Tue, 27 Sep 2016 16:48:16 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (lava.sentex.ca [IPv6:2607:f3e0:0:5::11]) by smarthost2.sentex.ca (8.15.2/8.15.2) with ESMTPS id u8RGmEXP075789 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Tue, 27 Sep 2016 12:48:15 -0400 (EDT) (envelope-from mike@sentex.net) Received: from [IPv6:2607:f3e0:0:4:5c30:ed1b:e203:c55c] ([IPv6:2607:f3e0:0:4:5c30:ed1b:e203:c55c]) by lava.sentex.ca (8.15.2/8.14.9) with ESMTP id u8RGmDkY089526; Tue, 27 Sep 2016 12:48:13 -0400 (EDT) (envelope-from mike@sentex.net) Subject: Re: complete clone/restore from a ZFS-based system replication stream To: dweimer@dweimer.net References: <20160926154720.GA75556@admin.sibptus.transneft.ru> <688eec35-bc7b-ae05-b765-106933b522d1@sentex.net> <20160927085322.GA96393@admin.sibptus.transneft.ru> <78faa2e2-0e44-27ef-eaf0-0f0fc358cc09@sentex.net> <01a14cd5b6d92250da5affd41b02be7b@dweimer.net> Cc: Victor Sudakov , freebsd-questions@freebsd.org From: Mike Tancsa Organization: Sentex Communications Message-ID: Date: Tue, 27 Sep 2016 12:48:14 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <01a14cd5b6d92250da5affd41b02be7b@dweimer.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2016 16:48:16 -0000 On 9/27/2016 12:10 PM, Dean E. Weimer wrote: >> zfs snapshot -r zroot@backup >> zfs send -R zroot@backup > >> /nfs-mount-on-backup-server/zroot-full-snap.zfs >> > > I believe you should be using a -p on the zfs send comand to have it > send properties, otherwise you need to first create the dataset with the > properties and use zfs receive -F to restore the dataset over the > existing dataset which will then inherit those properties. According to the docs, -p Include the dataset's properties in the stream. This flag is implicit when -R is specified. but probably good to specify on the CLI to make it more obvious/deliberate ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/