safe backup of the code