[Borgbackup] logging questions

Steve Schow steve at bstage.com
Sat May 14 10:27:57 EDT 2016


Another reason to have a log file option on borg…is that….if am going a backup to a remote machine and I want log files to end up on the remote machine.  Don’t know if the INI method can do that or not… but…  I would like it if log files could end up near the repo..including on a remote machine.

On May 13, 2016, at 5:20 PM, Steve Schow <steve at bstage.com> wrote:

> Ic.  Yea the INI docs you mentioned was greek to me so I will just capture the stdout and stderr and use that instead.   It would be nice if we could have that output go to an explicit log file so that when we decide to run borg ad-hoc and don’t remember to redirect stdout/stderr, we will see the output on the console and also have a log file to go look at later…
> 
> I’m quite impressed by borg.   Bye bye rsnapshot/rsync
> 
> 
> 
> 
> 
> On May 13, 2016, at 6:10 AM, Thomas Waldmann <tw at waldmann-edv.de> wrote:
> 
>>>   --list --stats --verbose --show-rc --filter=AMEds
>> 
>> Looks ok. There's a complete list of status chars in the docs - but if you just want to see added/modified/errored files, directories, symlinks, that is it.
>> 
>>> Can anyone confirm that I have the right options to see in my nightly log,
>>> a list of all files that were actually backed up, the final status,
>>> including the return status, so that I can catch a problem and send email
>>> notification.
>> 
>> If you use borg create in a script, you can also directly catch the return status (for bash it is $? ). --show-rc is primarily to see it later / for log analyzers (like in borgweb).
>> 
>>> Also I notice from the docs there is this env variable BORG_LOGGING_CONF,
>>> but I couldn’t find any information about how to use it.
>> 
>> Hmm, didn't I link to the python logging module configuration file format description? It's an ini-like file and you only need it if you have rather special logging needs. By default, we just output the log to stderr and log with the level you give on the commandline (--verbose is same as --info -> INFO log level).
>> 
>> -- 
>> 
>> GPG Fingerprint: 6D5B EF9A DD20 7580 5747  B70F 9F88 FB52 FAF7 B393
>> Encrypted E-Mail is preferred / Verschluesselte E-Mail wird bevorzugt.
>> _______________________________________________
>> Borgbackup mailing list
>> Borgbackup at python.org
>> https://mail.python.org/mailman/listinfo/borgbackup
> 
> _______________________________________________
> Borgbackup mailing list
> Borgbackup at python.org
> https://mail.python.org/mailman/listinfo/borgbackup



More information about the Borgbackup mailing list