Giter Site home page Giter Site logo

gosure's People

Contributors

d3zd3z avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gosure's Issues

Better documentation

The current documentation is just barely an overview of how to use gosure. Expand this to include sample use cases, and a clearer overview.

Scan of `-d` dir doesn't work

The commands always scan from the current directory, and the -d option is always ignored.

Trying to add code to scan the dir shows that other code assumes the scan is taking place in the current directory.

MD5? Consider SHA256

Hi - While doing a quick review after seeing the project on reddit, I found myself cringing at the use of MD5. While I understand that your indented use case is not specifically security related, using MD5 specifically excludes any security related use cases. Please consider a secure cipher like sha256.

Clean up progress indicator

Instead of just logging periodic progress messages, integrate the progress meter with the logging system. Overwrite the lines unless something is printed. Look to how restic does this for inspiration.

Print progress during scan

The initial scan can take time with large filesystems (and cold caches). Print progress during this scan so the program feels like it is still working.

Scan with unreadable file panics

Encountering a file that can be statted but not read panics with "panic: Attribute sha1 is empty" when trying to write the output.

Thoughts are to make the encoder/decoder able to skip the empty attribute, or output a blank sha1 (such as all zeros).

Allow alternative hash functions

Gosure and friends (rsure, etc) all use SHA1 has the hash function. Since these programs are more oriented toward integrity and not security, it isn't that harmful to use a weaker hash function. But, the user may want to consider other tradeoffs between performance and robustness of the hash function. Maybe they want increased performance, and use something like siphash or xxhash.

Add exclusion support

Add some type of --exclude option to support exclusion.

One complication with this is that if it is specified differently on each run, it can appear that files and directories are added when it was just the exclusion that changed. One possibility is to put the exclusion into the datafile and reuse it on subsequent updates.

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.