Comments (6)
I can't reproduce in an obvious way. I mean, if I run
$ tarsnap --dry-run --print-stats --humanize-numbers --no-default-config -c ~/backup
then it's fine. If I run
$ tarsnap --dry-run --print-stats --humanize-numbers -c ~/backup
without a ~/.tarsnaprc
then it's fine. If my ~/.tarsnaprc
is empty (or commented out), then it's also fine.
If ~/.tarsnaprc
points to a non-existent keyfile
then it complains, but surely that's a PEBCAK ?
Isn't the real problem that somebody ended up with .../etc/tarsnap.conf
instead of .../starsnap.conf.sample
? and that it wasn't obvious they could add --no-default-config
?
from tarsnap.
Thinking "out loud", we don't want to automatically add --no-default-config
if somebody specifies --dry-run
, because their config file could usefully specify --humanize-numbers
and their cache directory. And we definitely want to use the cache directory if it exists, otherwise the dry run will report that all data would be uploaded (which doesn't change anything in the "pre-signup case", but is definitely not what we want for "post-signup" accounts).
My current thought is that if they specify --dry-run
and tarsnap encounters an error, it could prompt them to use --no-default-config
if they haven't signed up. But the message should be clear that if they have signed up, and have generated a key, they shouldn't ignore the error.
Also, we should make sure that the tarsnap installation process doesn't end up with an unusable system. make install
installs tarsnap.conf.sample
as such, so maybe we should send a polite request to whichever packager did this? I've seen at least one few post-install script helpfully rename tarsnap.conf.sample
to tarsnap.conf
(to be fair, using tarsnap at all without a keyfile is a new feature).
from tarsnap.
Isn't the real problem that somebody ended up with .../etc/tarsnap.conf instead of .../tarsnap.conf.sample ? and that it wasn't obvious they could add --no-default-config?
Yes, but I want tarsnap.conf.sample to be installed as tarsnap.conf if no configuration file exists yet; the options in there are recommended.
from tarsnap.
Might be a good idea to add --no-default-config to your FAQ section:
https://www.tarsnap.com/faq.html#COST-BEFORE-SIGNUP
from tarsnap.
Good idea. I was hoping this would be a quick fix, but even if was, people running 1.0.36 would still be stuck until 1.0.37 came out.
EDIT: 1.0.37 -> 1.0.36, 1.0.38 -> 1.0.37.
from tarsnap.
Fixed in #91.
from tarsnap.
Related Issues (20)
- tarsnap: Pathname in pax header can't be converted to current locale. HOT 9
- Misleading tarsnap error on negative account balance HOT 5
- 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
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.