I just noticed that a lot of entries are missing from my bash command history (the .bash_history file).
I'd like to know:
- if there is a way to find out why commands are missing from the file (like a lack of disk space; I could not find hints in /var/log/syslog)
- if there are ways, issues or ongoing work to make sure that the bash history always reliably includes all executed bash commands - for example by copying a backup of the latest .bash_history file before overwriting it, doing so after every executed command and having a filesize-buffer in case disk space gets too low
The .bashrc file already has HISTSIZE and HISTFILESIZE set to very large values. I have backups of the .bash_history file.