Skip to content

Instantly share code, notes, and snippets.

@timdesrochers
timdesrochers / time-machine.sh
Created April 30, 2024 19:06 — forked from bahamat/time-machine.sh
DNS-SD Bonjour service discovery for Time Machine volumes
#!/bin/bash -x
if [[ -z $1 ]]; then
printf 'Must supply a path\n'
exit 1
fi
# We want to advertise a consistent volume UUID that will survive reprovisions.
zone_uuid=$(zonename)
bonjour_name="$(hostname -s).local"