Update function and backup data