From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from plane.gmane.org ([80.91.229.3]:32890 "EHLO plane.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753965AbbDJHAH (ORCPT ); Fri, 10 Apr 2015 03:00:07 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YgSv7-00036Z-7y for linux-btrfs@vger.kernel.org; Fri, 10 Apr 2015 09:00:05 +0200 Received: from 168.159.160.58 ([168.159.160.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Apr 2015 09:00:05 +0200 Received: from toyours_sridhar by 168.159.160.58 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Apr 2015 09:00:05 +0200 To: linux-btrfs@vger.kernel.org From: sri Subject: recreate subvolume (not using btrfs send and receive) Date: Fri, 10 Apr 2015 06:50:34 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-btrfs-owner@vger.kernel.org List-ID: Hi, I looking for a way to collect all metadata and data blocks associated with a subvolume or entire btrfs and recreate the same by dumping all blocks on newly allocated disks and bring the file system back assuming same number of disks are provided. Example is say for ext3/ext4 using the information of used block bit map information in each block group, I can Identify all used blocks of the ext3/ext4 partition and simply copy all blocks. Above will contains all metadata + data blocks (only used) For a 10 Gb disk and say only 2 gb is used, using above, I can collect all 2bg blocks. Thank I can simply dump those blocks to a destination partition and recreate the partition. In the same way I am looking something similar for btrfs. Could anybody let me know is there a way to do this or something similar I can work it out. Thanks you.