Add function of restoring from backup file