linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "André Malm" <admin@sheepa.org>
To: Chris Murphy <lists@colorremedies.com>
Cc: linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: Btrfs send with parent different size depending on source of files.
Date: Mon, 18 Feb 2019 23:58:05 +0100	[thread overview]
Message-ID: <a870ee41-983a-5786-eb14-4513de4da875@sheepa.org> (raw)
In-Reply-To: <CAJCQCtRLU=Cv9Lg75Vc4KO18N0y4hvoCuo9WV+rbKg2DTb+o7A@mail.gmail.com>

Ok, but I don't want to keep old snapshots of the child volumes. Only 
the latest and then diffing it in regards to the master. Would that be 
possible?

On 2019-02-18 23:28, Chris Murphy wrote:
> On Mon, Feb 18, 2019 at 2:36 PM André Malm <admin@sheepa.org> wrote:
>> The reason why I'm using reflinks instead of snapshots is because the
>> master subvolume is large and will contain hundreds of gigabytes worth
>> of data. Now if I change / remove, say 10 GB worth of data from the
>> master subvolume unrelated to the child subvolume I don't want those
>> gigabytes sent down the wire with btrfs send as they are unrelated. Also
>> I want to be able to after time, when required, add more data from the
>> master subvolume to the child. Thats why I can't split the master
>> subvolume into parts of related data.
> OK, is it your plan to have both master and child on the destination
> Btrfs? So you plan to do a 'btrfs send' without -p option to send the
> entire master subvolume (snapshot) to destination first? And then you
> want to create the child efficiently using a difference between master
> and child? Yes I think that might work but I haven't tried it. But of
> course, master must already be on the destination.
>
> btrfs sub create master
> ##populate the master
> btrfs sub create childofmaster
> cp --reflink master/bunchoffiles childofmaster/
> btrfs sub snap -r master master.20190218-initial
> btrfs sub snap -r childofmaster childofmaster.20190218-initial
> btrfs send master.20190218-initial | btrfs receive /destination/
> btrfs send -p master.20190218-initial childofmaster.20190218-initial |
> btrfs receive /destination/
>
> However your subsequent incremental send/receive has nothing to do
> with master anymore; you indicate above you don't intent to keep
> master up to date on the destination. Just child. In that case the
> incremental changes look like this:
>
> cp --reflink master/morefiles childofmaster/
> btrfs sub snap -r childofmaster childofmaster.20190218T1905
> btrfs send child -p childofmaster.20190218-initial
> childofmaster.20190218T1905 | btrfs receive /destination/
> cp --reflink master/yetmorefiles childofmaster/
> btrfs sub snap -r childofmaster childofmaster.20190219T1301
> btrfs send child  childofmaster.20190218T1905
> childofmaster.20190218T1905  | btrfs receive /destination/
>
>



  reply	other threads:[~2019-02-18 22:58 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-14 11:37 Btrfs send with parent different size depending on source of files André Malm
2019-02-14 22:37 ` Chris Murphy
2019-02-15  4:00   ` Remi Gauvin
2019-02-15 18:38     ` Chris Murphy
2019-02-15 18:56       ` Remi Gauvin
2019-02-16 20:10         ` Andrei Borzenkov
2019-02-15 17:45   ` Andrei Borzenkov
2019-02-15 19:11     ` Chris Murphy
2019-02-16 20:26       ` Andrei Borzenkov
2019-02-16 20:32         ` Andrei Borzenkov
2019-02-18 18:00         ` Chris Murphy
2019-02-15 19:29 ` Remi Gauvin
2019-02-15 19:41   ` Remi Gauvin
2019-02-16 20:08 ` Andrei Borzenkov
2019-02-17  3:11   ` Remi Gauvin
2019-02-18 13:05     ` André Malm
2019-02-18 18:06       ` Chris Murphy
2019-02-18 19:58         ` André Malm
2019-02-18 20:59           ` Graham Cobb
2019-02-18 21:22           ` Chris Murphy
2019-02-18 21:36             ` André Malm
2019-02-18 22:28               ` Chris Murphy
2019-02-18 22:58                 ` André Malm [this message]
2019-02-18 23:49                   ` Chris Murphy
2019-02-18 23:58                     ` André Malm
2019-02-19  0:16                       ` Chris Murphy
2019-02-19  0:17                         ` Chris Murphy
2019-02-19  0:28                         ` André Malm
2019-02-19  3:54                           ` Chris Murphy
2019-02-19 12:05                             ` André Malm

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=a870ee41-983a-5786-eb14-4513de4da875@sheepa.org \
    --to=admin@sheepa.org \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=lists@colorremedies.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).