GithubHelp home page GithubHelp logo

jxsl13 / backupfs Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 375 KB

backup-on-write filesystem abstraction layer with rollback mechanism.

License: MIT License

Go 99.35% Makefile 0.65%
backup copy-on-write filesystem go golang hide-files path-traversal-protection rollback

backupfs's People

Contributors

dependabot[bot] avatar john-behm-bertelsmann avatar jxsl13 avatar

Watchers

 avatar  avatar  avatar  avatar

backupfs's Issues

Appending backups to one another

I would like to merge two backup file systems to one another where one is merged into the other.
The appended backupfs ceases to exist, meaning, the backup is merged into the initial backupfs and deleted afterwards.

removal of created objects

In case that an object

  • did not exist in the first place
  • was created
  • and then removed again

This will create a nil FileInfo in the internal file map.

That entry may be deleted in the internal map, as it is the state that the filesystem currently has.
Reduces lstat and other operations.

trace or trackfs interface

the internally used file tracking logic may be wrapped in an own interface that can be a wrapper for the base fulesystem.

this way the internal tracking logic may be swapped with another implementation which allows for a different serialization implementation.

TrackFs or TraceFs

remove incorrect backups in case that underlying method calls fail

In specific edge cases it is possible that the underlying function calls return an error.

For example when creating a symlink and another file or symlink already exists, we do backup the file but the underlying symlink function does return an error thus we should remove the backup and potentially rollback the function call.

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.