Giter VIP home page Giter VIP logo

Comments (3)

eauchat avatar eauchat commented on June 19, 2024

Same here, I also have no logs in /var/log/backup_borg.log while there are some in /var/log/backup_borg.err

from borg_ynh.

eauchat avatar eauchat commented on June 19, 2024

Looking a bit deeper in borg_ynh code and borg documentation. It seems to make sense that there are no logs in /var/log/backup_borg.log.

From borg manpage:

Borg writes all log output to stderr by default. But please note that something showing up on stderr does not indicate an error condition just because it is on stderr.
Please check the log levels of the messages and the return code of borg for determining error, warning or success conditions.
If you want to capture the log output to a file, just redirect it:
borg create repo::archive myfiles 2>> logfile

Output level can be customized via the BORG_LOGGING_CONF environment variable, but it doesn't seem to allow to change where the logs are actually sent.

So it doesn't seem useful to have the >> $LOGFILE part in borg [init/create/prune/mount] ... >> $LOGFILE 2>> $ERRFILE lines.

Also, for the second thing mentioned by @BCITMike, the timestamps, I didn't find anything in borg documentation that would enable that. But this can be achieved with a bit of bash syntax.

I proposed a patch to solve those two issues #55.

from borg_ynh.

eauchat avatar eauchat commented on June 19, 2024

I guess this issue can be closed now that #55 has been merged.

from borg_ynh.

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.