"Could not read all configuration files" error on Mikrotik

If when trying to do a backup on a Mikrotik router and you get this error in the terminal and log: "backup,critical error creating backup file: could not read all configuration files" The fix is to simply regenerate your SSH key with this command: /ip ssh regenerate-host-key