Giter VIP home page Giter VIP logo

diff-dd's People

Contributors

btimby avatar jansucan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

btimby

diff-dd's Issues

Rewrite in modern C++

C is making it too laborious to apply good software engineering practices when the amount of code increases.

Usage for image-based updates

Hi, my use-case is not what you intended, but I think diff-dd could be used for my scenario. I am doing some experiments, but I thought you may have knowledge about my situation that you could possibly share.

I have a small linux system I am building up using docker. It is alpine linux, and the output of my build is a disk image. The system uses a read-only root and bind mounts / overlayfs to allow writes where necessary. I am looking to provide image based updates, which is trivial (wget -O - ... | dd of=/dev/sda3). But I would like to provide deltas if possible.

I currently build each image from scratch, by installing packages into a chroot and then bind mounting a file (formatted ext4) and copying the chroot into it. The diffs are basically 100% different. I plan to provide deltas for each version against the previous two versions. If a larger upgrade is necessary, it will just use the full image.

In your development and planning for this project, did you come across anything that might help me to keep the images "consistent" across builds? Is there a better filesystem (that allocates files in a predictable / consistent way). Should I base an image off the previous image and rsync the chroot into it? Can I copy files in a specific order to maintain consistency? fsck, defrag or anything that can help to arrange data blocks?

If you don't have any information that can help me, that is fine, thank you for your time. Anything you can provide is helpful. I am researching now and doing some tests on my own.

Thanks.

Make the command line interface more clear

Currently, the operation (backup, restore) is selected based on the number of arguments, which can be confusing.

Proposed command line interface:

diff-dd backup [-s SECTOR_SIZE] [-b BUFFER_SIZE] INFILE REFFILE BACKUPFILE
diff-dd restore [-s SECTOR_SIZE] [-b BUFFER_SIZE] BACKUPFILE OUTFILE

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.