Giter Site home page Giter Site logo

syncaws's People

Contributors

stevearm avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

syncaws's Issues

Implement a recover option

syncaws --project <projectName> recover

Prereqs

  • projectName must exist in the config
  • fingerprint must exist for the given project at projectId.js
  • there must exist an indexList.js on S3 for the given project (it can be empty)

Behaviour

  1. scan S3 for any indexes not included in the indexList.js
  2. for each orphaned index found, compare it to the fingerprint
  3. If they are the same, prompt the user to delete, finish, or do nothing. If they are different, prompt for delete or do nothing

For delete

  1. for all new files in the index (not in the previous one) that exist on S3, delete them
  2. delete the index

For finish

  1. for all new files in the index (not in the previous one) that are not on S3, upload them
  2. update indexList.js to include the new index

Implement a prune option

syncaws --project <projectName> prune

Prereqs

  • projectName must exist in the config

Behaviour

  1. show a list of the dates available
  2. ask which one to delete upto (do not allow sparse lists, only delete oldest X entries)

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.