Comments (4)
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.
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.
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.
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)
- Installation instructions are out of date HOT 1
- Current project status? HOT 5
- UnicodeDecodeError on upload HOT 8
- comparison with aws glacier CLI?
- glacier vault sync: sqlalchemy.exc.IntegrityError: (IntegrityError) column id is not unique
- SQLAlchemy database is locked error HOT 1
- UnicodeDecodeError while archiving files with git-annex to glacier HOT 5
- SSL certificate verify failed on upload of 6.6 GiB file HOT 2
- Any plan to incorporate packaging improvements into the master branch? HOT 2
- sqlalchemy.orm.exc.MultipleResultsFound: Multiple rows were found for one() HOT 2
- Limit hourly retrieval rate
- Error when using ca-central-1 region (stacktrace included in description) HOT 2
- UnicodeDecodeError due to non-ASCII chars in key HOT 2
- It's not clear how to provide authentication details
- with git-annex context - reading from stdin with python3 requires .buffer HOT 4
- Another UnicodeDecode Error HOT 4
- Add .travis.yml for continuous integration/testing HOT 3
- glacier archive retrieve fails HOT 2
- Retrieval error : TypeError: write() argument must be str, not bytes HOT 1
- Broken "Glacier_remote_uploads_duplicates" bug link HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glacier-cli.