Giter Site home page Giter Site logo

Comments (5)

deajan avatar deajan commented on May 27, 2024

As of current NPBackup version, logfile path is not configurable.
New version of NPBackup is comming soon, and the workflow will look like:

  • If --logfile= then create logfile in
  • else if /var/log exists and is writable, then create logfile there
  • else if current directory is writable, then create logfile there
  • else create logfile in tmpdir

Is that behavior something you'd expect ?

from npbackup.

GuitarBilly avatar GuitarBilly commented on May 27, 2024

yes this behaviour makes sense to me.

Can you elaborate on how to handle the situation if the --logfile= location cannot be written to? I would expect to throw an error and abort as the user explicitly/deliberately wants to override the logfile location.

But (as you already described) without --logfile= provided I would expect it to try /var/log then currentdir then tmpdir.

from npbackup.

deajan avatar deajan commented on May 27, 2024

IMO, even with --logfile=/some/unwritable/path, I prefer the backups to run.
Imagine being stuck because your log partition is full, and no backup is run anymore.

from npbackup.

GuitarBilly avatar GuitarBilly commented on May 27, 2024

Fair enough, and I think either way will be an improvement!

Do you want to keep this issue open for tracking of the feature?
Else it can be closed as my question is answered.

from npbackup.

deajan avatar deajan commented on May 27, 2024

Thanks for the "housekeeping", but yes, I'll keep that open until everything is implemented.
I've rewritten the logging code after the CLI/GUI split, and it's not writing to /var/log by default right now.

from npbackup.

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.