Comments (6)
I'm marking this as postponed because I don't think it makes sense to work on this until we move to a newer libarchive and use the new tree-traversal code. There will need to be some logic for recognizing the difference between "this is a file the user asked us to back up" and "this is something we found during the filesystem traversal", and that's going to depend on the new traversal code.
from tarsnap.
I had a backup run fail last night because of this. Surprisingly this was the first time I've seen this failure over many years of using Tarsnap. While this still doesn't seem urgent, is there any news here?
from tarsnap.
@mhoran What exactly do you mean by "had a backup run fail"? This triggers a warning and non-zero exit from tarsnap but it isn't a fatal error, i.e. it won't stop tarsnap from creating an archive.
... unless something else broke as well?
from tarsnap.
Ah, OK! I saw the message and presumed that it was an error (it looked nearly exactly like your example.) Seeing that there was an "error" I figured the backup script had bailed but didn't capture the exit code. It does look like the backup completed (based on archive size) so I guess this is fine, just misleading. Sorry for the noise!
from tarsnap.
Hmm,
tarsnap: Error exit delayed from previous errors.
and a non-zero exit code looks awfully like a fatal error.
Maybe it would help if we added some kind of
tarsnap: foo/bar/baz: Cannot stat: No such file or directory
tarsnap: This might be suspicious, but is probably just a normal consequence of backing up a running system. Reporting an error in case you want to investigate.
tarsnap: Error exit delayed from previous errors.
(That's probably too wordy, but something along those lines could avoid some unnecessary angst. And since we're writing backup software for the truly paranoid, we should expect users to angst easily!)
from tarsnap.
and a non-zero exit code looks awfully like a fatal error.
I can confirm that tarsnap did exit non-zero as my script first creates an archive and then deletes archives > 7 days old. The script bailed before deleting old archives, so tarsnap must have exited non-zero. Ideally in this scenario that wouldn't happen. I do only want to delete old archives if a new archive succeeded, but in this case it succeeded but indicated failure due to the race condition.
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.