From: Adam Ryczkowski <adam.ryczkowski@statystyka.net>
To: linux-btrfs@vger.kernel.org
Subject: How to clone btrfs partition?
Date: Sun, 17 Feb 2013 00:14:30 +0100 [thread overview]
Message-ID: <512012D6.7010403@statystyka.net> (raw)
In-Reply-To: <20130216221709.GK28997@carfax.org.uk>
Welcome,
I need to clone btrfs partition. Not a single snapshot, but the whole
lot of snapshots.
I thought that send & receive can help me. Can it? When I try to use
btrfs send /mnt/btrfs-root >/dev/null
I get "ERROR: /mnt/adama-docs is not read-only.", and I was explained that I need to use snaphot (created with the "-r" switch).
So does it mean that I need to make a recursive search for each read&write subvolume on the file system in order to make a read-only snapshot, so I can clone the whole partition? Or is there a more simple approach?
--
Adam Ryczkowski
+48505919892
Skype:sisteczko
next prev parent reply other threads:[~2013-02-16 23:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-03 13:33 Is it possible to use send & receive features to clone the btrfs partition efficiently (including all snapshots inside)? Adam Ryczkowski
2013-02-04 1:12 ` Chen Yang
2013-02-16 22:07 ` Why does "btrfs send /mnt/btrfs-root" fail with "ERROR: /mnt/btrfs-root is not read-only." even when mounted with option "ro"? Adam Ryczkowski
2013-02-16 22:17 ` Hugo Mills
2013-02-16 23:14 ` Adam Ryczkowski [this message]
2013-02-16 23:13 ` How to clone btrfs partition? Hugo Mills
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=512012D6.7010403@statystyka.net \
--to=adam.ryczkowski@statystyka.net \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.