From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: Using BtrFS and backup tools for keeping two systems in sync
Date: Thu, 8 Oct 2015 23:18:25 +0000 (UTC) [thread overview]
Message-ID: <pan$1460a$dca727ad$9f868710$44ab0973@cox.net> (raw)
In-Reply-To: 20151008063745.GB25907@carfax.org.uk
Hugo Mills posted on Thu, 08 Oct 2015 06:37:45 +0000 as excerpted:
> On Thu, Oct 08, 2015 at 08:05:09AM +0530, Shriramana Sharma wrote:
>> Hello. I see there are some backup tools taking advantage of BtrFS's
>> incremental send/receive feature:
>> https://btrfs.wiki.kernel.org/index.php/Incremental_Backup. [BTW Ames
>> Cornish's ButterSink (https://github.com/AmesCornish/buttersink) seems
>> to be missing from that page.]
>>
>> Now I'd like to know if anyone has evolved some good practices w.r.t
>> maintaining the data of two systems in sync using this feature of
>> BtrFS. What I have in mind is: I work on my desktop by default, and for
>> ergonomics reasons only use my laptop when I need the mobility.
>> I'd like to keep the main data (documents I create, programs I write
>> etc) in sync between the two. (The profile data such as in the ~/.*
>> hidden folders had better stay separate though, I guess.)
>>
>> I figure with the existing tools it would not be too difficult to
>> maintain a synced set of snapshots between the two systems if I only
>> use the desktop vs laptop alternatingly and sync at each switchover,
>> but the potential problem only would come if I modify both (something
>> like having to do git merge, I guess).
>>
>> Has anyone come across this situation and evolved any policies to
>> handle it?
>
> You can't currently do this efficiently with send/receive. It
> should be possible, but it needs a change to the send stream format.
Elucidating somewhat...
AFAIK (as a list regular but not a dev or a user, personally, of the send/
receive functionality), currently, btrfs send/receive incremental works
only one way. That is, the send-stream format provides sufficient
information for incremental sends after an original send, but there's no
way to reverse the process and sync the other way, from the original
receiver back to the sender. A full send can be done, but then it's no
longer linked to the the original.
As Hugo says, the base functionality is available, but actually hooking
it up to work will require a bump to the send stream format, as the
required information simply isn't sent, ATM. That send stream format
bump is likely to eventually happen, but there's a very strong interest
in keeping the number of formats that must be supported for backward
compatibility to a minimum, and thus in a minimum number of format
bumps. So the devs want to delay the bump as long as possible,
identifying anything else that might need to change in the mean time, and
make, ideally, one final bump, including all changes discovered to be
needed since the last one, and then no more.
So while this necessary change is known, it could be some time, yet,
before it's actually done, with hopefully no further changes necessary or
allowed after that.
Which back on the reoccurring theme of btrfs stability...
... is another point toward btrfs "definitely stabilizing now, but not
yet fully stable and mature." When the devs decide there are likely no
further as-yet undiscovered necessary changes coming and finally do this
bump, we'll know they really do consider btrfs to be settling down into
stability.
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
next prev parent reply other threads:[~2015-10-08 23:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-08 2:35 Using BtrFS and backup tools for keeping two systems in sync Shriramana Sharma
[not found] ` <CAC=t97ABS4+D4FczYi8Vk9FKxJkwySccDYVzDhyj2Tj3rDOtJA@mail.gmail.com>
2015-10-08 5:54 ` Shriramana Sharma
2015-10-08 6:37 ` Hugo Mills
2015-10-08 23:18 ` Duncan [this message]
2015-10-08 11:26 ` Austin S Hemmelgarn
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='pan$1460a$dca727ad$9f868710$44ab0973@cox.net' \
--to=1i5t5.duncan@cox.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 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).