Skip to content

Instantly share code, notes, and snippets.

@maximko
maximko / borg-macos-backup.sh
Last active June 3, 2024 04:09
Backup macOS using borg and apfs snapshots
#!/usr/local/bin/bash
export BORG_REPO="ssh://user@server/borg-repo"
if [[ ! "${USER}" == "root" ]]; then
echo Start this script as root
exit 1
fi
echo === Present snapshots ===