[Borgbackup] Cannot find borg log file

jon h jon77h at gmail.com
Thu Mar 16 08:45:13 EDT 2017


Hi

I've made my first borg backup,
after studying the documentation for a few hours.
[https://borgbackup.readthedocs.io/en/stable/...]

But now I can't find the log file.
It's not in /var/log, nor in /root anywhere.

More searching the docs and googling reveal
nothing about where the log file should be.

Here are the commands I used:

[jh at SSD1 data]$ export TMPDIR='/mnt/zp0/ztemp'
[jh at SSD1 data]$ export BORG_REPO='/mnt/zp0/borg/repo'
[jh at SSD1 data]$ export BORG_CACHE_DIR='/mnt/zp0/borg/cache'
[jh at SSD1 data]$ export BORG_FILES_CACHE_TTL=100
[jh at SSD1 data]$ borg init --encryption=none $BORG_REPO

[root at SSD1 ~]# export TMPDIR='/mnt/zp0/ztemp'
[root at SSD1 ~]# export BORG_REPO='/mnt/zp0/borg/repo'
[root at SSD1 ~]# export BORG_CACHE_DIR='/mnt/zp0/borg/cache'
[root at SSD1 ~]# export BORG_FILES_CACHE_TTL=100
[root at SSD1 ~]# export EXCLUDE_FILE='/mnt/data/---/exclude.txt'
[root at SSD1 ~]# borg create /mnt/zp0/borg/repo::manjaro_all_170316T2010
/ --numeric-owner --one-file-system --stats --progress --show-rc
--exclude-from $EXCLUDE_FILE --chunker-params=17,23,20,4095

There was a progress line while it was running,
but no stats when it finished.

I thought the lack of a log file might be caused by lack of errors,
so i tried 'check' with 'info' level :

[root at SSD1 ~]# borg check --info --show-rc
Starting repository check
Completed repository check, no problems found.
Starting archive consistency check...
Analyzing archive manjaro_all_170316T2010 (1/1)
Archive consistency check complete, no problems found.
terminating with success status, rc 0

At least there's some output this time, including rc,
but still no log file in any place that's obvious to me.

It's surprising that the docs don't mention the log location.

Feature request: allow us to set BORG_LOG_DIR
in the same way that we can set BORG_CACHE_DIR.

Any help will be appreciated.

-- jon


More information about the Borgbackup mailing list