GithubHelp home page GithubHelp logo

Comments (4)

basak avatar basak commented on August 28, 2024

Sounds like a reasonable need.

I've been careful to make sure that glacier-cli only returns success only when the upload is successful, and it would be a bug if there's any case where it doesn't do this.

Given that you are calling glacier-cli from a script anyway, is there any reason why you can't do something like this?

glacier archive upload vault filename && rm filename

The rm filename will only execute if glacier-cli returns success.

If this works for you, I'd prefer to keep glacier-cli within the Unix philosophy of doing one thing well, and leaving it to the caller to put it together with other tools as necessary. But if this is awkward for some reason that I'm missing, or if there is some other reason for which we need it, then I'll be happy to add something like a --delete-local option.

from glacier-cli.

basak avatar basak commented on August 28, 2024

Incidentally, I'll be adding automatic upload resume functionality soon. You may find this useful. Just waiting on a pull request in boto.

from glacier-cli.

 avatar commented on August 28, 2024

Yep I can use a script &&. I can't think of a good reason not to, especially now I know the return codes are properly returned by glacier-cli.

Many thanks for the tip. If I run into a road block I will re-request the feature.

from glacier-cli.

basak avatar basak commented on August 28, 2024

OK, but one warning. Although the intent is to make sure that the exit status is only zero if the upload was successful, there may be bugs anywhere in the stack. Eg. glacier-cli, boto, python's httplib, etc. Please remember that there's no warranty, and test your particular use cases!

from glacier-cli.

Related Issues (20)

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.