Write backup file while recording