All of lore.kernel.org
 help / color / mirror / Atom feed
* btrfs diff between snapshosts
@ 2014-05-20  2:06 Marc MERLIN
  0 siblings, 0 replies; only message in thread
From: Marc MERLIN @ 2014-05-20  2:06 UTC (permalink / raw)
  To: linux-btrfs

As a followup on the discussion we had on how to do a live data switch
on a partition without unmounting it since it's busy, it came back to
how do you know what changed between 2 snapshots.

btrfs send giving a file list of what was added/modified/removed is the
long term answer, and Filipe is working on patches that will offer this
in the future (thanks Filipe).

In the meantime, I found a hack/script that gives a partial diff between
2 snapshots, called it btrfs-diff but then remembered that there isn't a
page for it.

So, I made one, along with example usage:
http://marc.merlins.org/perso/btrfs/post_2014-05-19_Btrfs-diff-Between-Snapshots.html

Hope this helps.

As another temp hack, I tried to look at a quick way to parse btrfs send
output to just spit out filenames, but that wasn't too trivial (as in
with sed/perl).

If someone has something better, please share :)

Thanks,
Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/                         | PGP 1024R/763BE901

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-05-20  2:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-20  2:06 btrfs diff between snapshosts Marc MERLIN

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.