borgbackup / borg

Deduplicating archiver with compression and authenticated encryption.
https://www.borgbackup.org/
Other
11.26k stars 747 forks source link

optimize to store LVM snapshot differences #4363

Open ThomasWaldmann opened 5 years ago

ThomasWaldmann commented 5 years ago

Had an interesting discussion at 35c3 and the idea came up to add a fixed blocksize chunker for LVM LE size (4MiB? And configurable also to other block sizes, of course.). We have that now in borg 1.2, see #4238.

It would be possible then to ask LVM for the changed LEs between 2 snapshots and efficiently just add the changed LEs to a borg repo:

ThomasWaldmann commented 5 years ago

Related:

https://github.com/QubesOS/qubes-issues/issues/858, especially https://github.com/QubesOS/qubes-issues/issues/858#issuecomment-262256101

https://github.com/tasket/sparsebak

update: https://github.com/tasket/wyng-backup

srd424 commented 5 years ago

Have you ever come across the dm-era device mapper target? Looks relevant: https://web.archive.org/web/20160811124312/http://blog.rackcorp.com/2016/03/

ThomasWaldmann commented 5 years ago

Interesting. But (OMG), arrays of bits (ints) as XML...

srd424 commented 5 years ago

I don't know if the output from era_invalidate is any saner....

On Wed, 7 Aug 2019 at 15:41, TW notifications@github.com wrote:

Interesting. But (OMG), arrays of bits (ints) as XML...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/borgbackup/borg/issues/4363?email_source=notifications&email_token=AB4TJUR3E2ZRW7XTXSZRV2LQDLNJFA5CNFSM4GXMGDKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3YUFMA#issuecomment-519127728, or mute the thread https://github.com/notifications/unsubscribe-auth/AB4TJUQ2YINN5MYTTDALRKDQDLNJFANCNFSM4GXMGDKA .

srd424 commented 5 years ago

https://github.com/mpalmer/lvmsync might be worth a look too - seems to be focused on syncing images using snapshots..