Giter Club home page Giter Club logo

Comments (6)

cperciva avatar cperciva commented on July 22, 2024

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.

mhoran avatar mhoran commented on July 22, 2024

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.

cperciva avatar cperciva commented on July 22, 2024

@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.

mhoran avatar mhoran commented on July 22, 2024

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.

gperciva avatar gperciva commented on July 22, 2024

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.

mhoran avatar mhoran commented on July 22, 2024

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)

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.