backup-utils
backup-utils copied to clipboard
/var/log/ logs missing in ghe-backup
Today i had to check older log files of our GHE instance and have noticed that no /var/log/ log file is part of the ghe backup. Or at least i was not able to find it in the data structure.
Didn´t find somethin correlated in here: https://github.com/github/backup-utils/blob/master/docs/backup-snapshot-file-structure.md
At least i would expect that /var/log/github and /var/log/babeld folders are part of the backup, better the whole /var/log folder.
Can someone help me on this?
Thanks in advance!
Hi @ManuelMinkAtBOSCH - backup-utils does not backup logs like /var/logs, to keep longer term logs, you could configure log forwarding
oh ok :/ from a system operaters pov i find it quite important to also have logs in the backup, even when they are are forwarded, as the backup maybe has other retention policies regarding storage or time than a log analayser. I would appreaciate a configuration switch or at least a comment, that they are not part of the default backup.
I'm executing the backup-utils in a cron job and outputting logs to /var/log, this may be of some help:
0 * * * * github-backup /opt/github-backup-utils/bin/ghe-backup -v 1>>/var/log/ghe-backup/backup.log 2>&1
I'm executing the
backup-utilsin a cron job and outputting logs to/var/log, this may be of some help:0 * * * * github-backup /opt/github-backup-utils/bin/ghe-backup -v 1>>/var/log/ghe-backup/backup.log 2>&1
@rflett Hmm i do this as well, but my question was related to the github logs not the backup process logs.