parameterize hostname in snapshot script