Skip to content

Instantly share code, notes, and snippets.

@jamessimas
jamessimas / bkexternal.sh
Created June 13, 2025 14:59
Backup script for external hard drives
bkexternal () {
HOST=$(hostname -s)
EXT_DRIVE_PATH="/Volumes/RsyncBackupDrive"
if [[ ! -e "$EXT_DRIVE_PATH" ]]; then
echo "Drive path not found: $EXT_DRIVE_PATH"
return 1
fi
# Helpful cheat sheet: https://devhints.io/rsync