backup-utils icon indicating copy to clipboard operation
backup-utils copied to clipboard

/var/log/ logs missing in ghe-backup

Open MmAtBosch opened this issue 4 years ago • 6 comments

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!

MmAtBosch avatar Aug 16 '21 13:08 MmAtBosch

Hi @ManuelMinkAtBOSCH - backup-utils does not backup logs like /var/logs, to keep longer term logs, you could configure log forwarding

jianghao0718 avatar Aug 16 '21 16:08 jianghao0718

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.

MmAtBosch avatar Aug 16 '21 17:08 MmAtBosch

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

rflett avatar Aug 17 '21 00:08 rflett

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

@rflett Hmm i do this as well, but my question was related to the github logs not the backup process logs.

MmAtBosch avatar Aug 17 '21 14:08 MmAtBosch