Add backup and restore functionality