From mboxrd@z Thu Jan 1 00:00:00 1970 From: Freddie Cash Subject: Re: Cloning a Btrfs partition Date: Wed, 7 Dec 2011 10:39:39 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: linux-btrfs@vger.kernel.org To: BJ Quinn Return-path: In-Reply-To: List-ID: On Wed, Dec 7, 2011 at 10:35 AM, BJ Quinn wrote: > I've got a 6TB btrfs array (two 3TB drives in a RAID 0). It's about 2/3 full and has lots of snapshots. I've written a script that runs through the snapshots and copies the data efficiently (rsync --inplace --no-whole-file) from the main 6TB array to a backup array, creating snapshots on the backup array and then continuing on copying the next snapshot. Problem is, it looks like it will take weeks to finish. > > I've tried simply using dd to clone the btrfs partition, which technically appears to work, but then it appears that the UUID between the arrays is identical, so I can only mount one or the other. This means I can't continue to simply update the backup array with the new snapshots created on the main array (my script is capable of "catching up" the backup array with the new snapshots, but if I can't mount both arrays...). > > Any suggestions? Until an analog of "zfs send" is added to btrfs (and I believe there are some side projects ongoing to add something similar), your only option is the one you are currently using via rsync. -- Freddie Cash fjwcash@gmail.com