added backup/restore functionality to make Script