Added backing up of original files for recovery