# Default the host to the Aether host in whatever domain this host lives in.
host="$1"
if [ -z "$host" ]; then
host=Aether
fi
# Default the path to /
path="$2"
if [ -z "$path" ]; then
path='/'
fi
# Try to contract the host
if (nmap --open -p 22 "$host" | grep -E '22/tcp\s+open' &>/dev/null); then
# Confirm with the user
printf "Are you sure you want to back everything up to %s?\n* Is the root password set and backup volume mounted on '/mnt'?\n* Do you have time for this backup to complete?\n* Does \`ssh-keyscan -D localhost\` on the server match this? `ssh-keyscan -D "$host" 2>/dev/null | grep 4\ 2`\nEnter YES in all capitals to continue..." "$host"