Rework the backup helper script a bit