Since the bash_history file saves only the last n commands, I'd like to create a file that has the entire history of all the commands ever entered in the system.
history > textfile.txt
saves the last 1000 commands to a text file. Is there a way to regularly and automatically back up the terminal history to a text file?