Skip to content

Instantly share code, notes, and snippets.

@mxl
mxl / macos_dd_ibs_test.sh
Created June 25, 2019 12:37
dd ibs test for macOS
#!/usr/bin/env bash
# Since we're dealing with dd, abort if any errors occur
set -e
TEST_FILE=${1:-dd_ibs_testfile}
if [ -e "$TEST_FILE" ]; then TEST_FILE_EXISTS=$?; fi
TEST_FILE_SIZE=134217728
# Exit if file exists
#!/usr/bin/env bash
BACKUP_PATH=$1
if [ -z "$BACKUP_PATH" ]; then
echo "Please provide path to Time Machine backup bundle."
exit 1
fi
echo "More info at https://jd-powered.net/notes/fixing-your-time-machine-backup/"