Comments (7)
Answer from Colin:
It's not possible right now. The issue here is that there is a key used to determine how data is split into chunks, so even if nothing is being encrypted and uploaded, getting an accurate value will depend on having generated keys.
At some point, running that command should result in tarsnap printing a warning (e.g., "No keys loaded - using fake keys for tarsnap dry run") and generating temporary keys. To be specific, this should happen if tarsnap is being run in mode -c, the --dry-run option is specified, and no --keyfile option has been specified. (If a keyfile was provided but it doesn't have the right keys, we want to die loudly, because that's almost certainly PEBKAC.)
from tarsnap.
Also, why does --dry-run
require an archive name? It isn't taken into account (it doesn't check with the server so it won't warn if an archive of the same name already exists).
from tarsnap.
Ooh, junior hacker task here! A much easier one than generating fake keys.
The reason --dry-run needs an archive name is that the archive name gets stored in the archive metadata, which is then encrypted and signed and dry-run stored (aka not stored but it gets added to the statistics).
Solution: If the user specifies --dry-run and does not specify -f, set a fake archive name -- I'd go with something like "(dry-run)" just in case it gets exposed anywhere visible (I don't think it does right now, but it's best to have an obviously fake name in case it gets exposed at some point in the future).
from tarsnap.
Umm. This is a much more "junior" task than you anticipated. :P
I'll just let 3e6431b speak for itself. (in case there's any doubt, expand the comment above the change)
from tarsnap.
Uhh... yeah, I guess I tried to do this years ago and didn't test whether the change I was making actually fixed it... it's even mentioned in the 1.0.27 release notes. sigh
from tarsnap.
This is now included in PR #12. Turns out I misunderstood how keygen was happening, so all that refactoring of keygen.c and keyregen.c was irrrelevant to this. (I'll still finish it up and send it in, though)
from tarsnap.
PR #12 fixed this; will be included in tarsnap 1.0.36.
from tarsnap.
Related Issues (20)
- lseek (_llseek) issue introduced in 1f56dc7c35b, possibly only on Linux i686 HOT 11
- Workaround for Windows Subsystem for Linux bug with link() HOT 1
- Add support for .gitignore files HOT 2
- escaping bug/typo in tarsnap(1) manpage HOT 1
- Machine name doesn't work with accents ? HOT 5
- master fails to build on old gcc (below version 9) HOT 9
- apt-key is deprecated - update installation instructions HOT 5
- Tarsnap Website Screen Reader Compatibility HOT 3
- Look for tarsnap.conf in ~/.config/tarsnap/ HOT 1
- Optional support for CACHEDIR.TAG files HOT 2
- New release? HOT 2
- Build fails on NetBSD HOT 4
- build: The <sys/sysctl.h> header is deprecated
- False warnings from clang-scan
- tarsnap can be tricked into skipping file using "touch -r" HOT 5
- libressl 3.6 will add `OPENSSL_cleanup()` HOT 1
- Deleting of archives taking up a lot of server -> client bandwidth HOT 6
- workaround for libc/kernel disagreement about whether lchmod exists HOT 1
- --include option HOT 12
- Anchored excludes HOT 1
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 tarsnap.