function to check a backup