Audacity’s auto-save feature periodically saves a backup copy of your ongoing project. You can enable this feature and set the auto-save interval by going to Edit > Preferences > Directories.