btrfs-snapshots-diff icon indicating copy to clipboard operation
btrfs-snapshots-diff copied to clipboard

generate GNU diffs

Open darkdragon-001 opened this issue 7 years ago • 4 comments

Since you made all the effort of decoding the stream, what about another output format: GNU diff

This would allow to extract patch files from btrfs snapshots :)

darkdragon-001 avatar Jul 12 '18 18:07 darkdragon-001

What is your use case?

jkuchar avatar Jul 23 '18 08:07 jkuchar

Compatibility with non-btrfs systems. For example I have local snapshots on my laptop and want to backup only the changes to any cloud storage. So the first backup is full via rsync, the following ones could be a diff file, compressed and encrypted. Or I want to calculate the difference from yesterday to a snapshot two weeks ago and apply this patch for a git repository somewhere. Using a standard format gives you just so many possibilities :smile:

darkdragon-001 avatar Jul 28 '18 17:07 darkdragon-001

Interesting idea, however GNU diffs are only for text files not for binary ones.

jkuchar avatar Jul 30 '18 09:07 jkuchar

One could use the Git diff format. For text it is similar to GNU diff, but it also support binary.

darkdragon-001 avatar Jul 30 '18 09:07 darkdragon-001