Instead of writing to the main file, we should create a backup, write to it and then copy it over.
Instead of writing to the main file, we should create a backup, write to it and then copy it over.