All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hugo Mills <hugo@carfax.org.uk>
To: Adam Ryczkowski <adam.ryczkowski@statystyka.net>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: How to clone btrfs partition?
Date: Sat, 16 Feb 2013 23:13:28 +0000	[thread overview]
Message-ID: <20130216231328.GL28997@carfax.org.uk> (raw)
In-Reply-To: <512012D6.7010403@statystyka.net>

[-- Attachment #1: Type: text/plain, Size: 1180 bytes --]

On Sun, Feb 17, 2013 at 12:14:30AM +0100, Adam Ryczkowski wrote:
> 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?

   Right now, yes, that's what you'll have to do. Note that the set of
snapshots won't be atomic, although each snapshot itself is atomic.
Recursive snapshots aren't implemented yet, but are on the list of
things to do.

   Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
                   --- I know of three kinds: hot, ---                   
                cool,  and what-time-does-the-tune-start?                

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

      reply	other threads:[~2013-02-16 23:13 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       ` How to clone btrfs partition? Adam Ryczkowski
2013-02-16 23:13         ` Hugo Mills [this message]

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=20130216231328.GL28997@carfax.org.uk \
    --to=hugo@carfax.org.uk \
    --cc=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.