Hi,
I recently started using ntfsclone -s to create regular backups of
multiple Windows machines in my home network. Storing multiple backup
generations requires more space than I can bear, so I wanted to replace
older images with delta files.
The binary diff tools which I tried where unable to efficiently handle
such large files. rdiff for example consumed all my memory and finally
crashed my kernel. xdelta3 worked somewhat, but was slow and produced
suspiciously large deltas.
Therefore I wrote ntfscloneimgdelta, a simple program which reads two
ntfsclone special image files, and creates a delta file with almost
identical structure, containing only the header, the clusters and some
commands necessary to reconstruct the second input file:
ntfscloneimgdelta delta FILE1 FILE2 DELTA
To reconstruct FILE2 from FILE1 and DELTA:
ntfscloneimgdelta patch FILE1 DELTA FILE2
Of course it's possible to dump the image and to create the delta in one
step:
mv curr.img prev.img
ntfsclone -s -o - /dev/xyz | tee curr.img |
ntfscloneimgdelta delta - prev.img prev.img.delta
rm prev.img
And to reconstruct an image from a delta and to restore it in one step:
ntfscloneimgdelta patch curr.img prev.img.delta |
ntfsclone -r -O /dev/xyz -
Maybe my use case is very exotic and no one cares for deltas between
ntfsclone images. But in case someone else finds this useful:
->
http://nowak2000.de/kolja/ntfscloneimgdelta.cGreetings,
Kolja Nowak.
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2_______________________________________________
Linux-NTFS-Dev mailing list
Linux-NTFS-Dev@...
https://lists.sourceforge.net/lists/listinfo/linux-ntfs-dev