From owner-freebsd-stable@FreeBSD.ORG Sat Mar 2 01:12:04 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E69B710B for ; Sat, 2 Mar 2013 01:12:04 +0000 (UTC) (envelope-from dmagda@ee.ryerson.ca) Received: from eccles.ee.ryerson.ca (eccles.ee.ryerson.ca [141.117.1.2]) by mx1.freebsd.org (Postfix) with ESMTP id AB5668D for ; Sat, 2 Mar 2013 01:12:04 +0000 (UTC) Received: from [10.0.1.2] (bas2-toronto09-1176131079.dsl.bell.ca [70.26.86.7]) (authenticated bits=0) by eccles.ee.ryerson.ca (8.14.4/8.14.4) with ESMTP id r221B8fn036634 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Fri, 1 Mar 2013 20:11:09 -0500 (EST) (envelope-from dmagda@ee.ryerson.ca) Subject: Re: Musings on ZFS Backup strategies Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: David Magda In-Reply-To: <5130EB8A.7060706@gmail.com> Date: Fri, 1 Mar 2013 20:12:03 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <2B318078-F863-4415-8DAE-94EE4431BF4C@ee.ryerson.ca> References: <5130BA35.5060809@denninger.net> <5130EB8A.7060706@gmail.com> To: Volodymyr Kostyrko X-Mailer: Apple Mail (2.1283) Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Mar 2013 01:12:05 -0000 On Mar 1, 2013, at 12:55, Volodymyr Kostyrko wrote: > Yes, I'm working with backups the same way, I wrote a simple script = that synchronizes two filesystems between distant servers. I also use = the same script to synchronize bushy filesystems (with hundred thousands = of files) where rsync produces a too big load for synchronizing. >=20 > = https://github.com/kworr/zfSnap/commit/08d8b499dbc2527a652cddbc601c7ee8c0c= 23301 There are quite a few scripts out there: http://www.freshports.org/search.php?query=3Dzfs For file level copying, where you don't want to walk the entire tree, = here is the "zfs diff" command: > zfs diff [-FHt] snapshot [snapshot|filesystem] >=20 > Describes differences between a snapshot and a successor = dataset. The > successor dataset can be a later snapshot or the current = filesystem. >=20 > The changed files are displayed including the change type. The = change > type is displayed useing a single character. If a file or = directory > was renamed, the old and the new names are displayed. http://www.freebsd.org/cgi/man.cgi?query=3Dzfs This allows one to get a quick list of files and directories, then use = tar/rsync/cp/etc. to do the actual copy (where the destination does not = have to be ZFS: e.g., NFS, ext4, Lustre, HDFS, etc.).