Skip to content

Instantly share code, notes, and snippets.

View jared-paul's full-sized avatar

Jared jared-paul

View GitHub Profile
@jared-paul
jared-paul / copy-iphone-photos.sh
Created April 4, 2026 00:17
script to transfer photos & videos off iPhone that keeps restarting
#!/bin/bash
# Resilient iPhone photo copy script
# Uses a watchdog to kill ifuse the instant the phone disconnects,
# preventing D-state hangs on the FUSE mount.
MOUNT_DIR="$HOME/iPhone"
DEST_DIR="$HOME/iPhone-Backup"
DCIM_PATH="$MOUNT_DIR/DCIM"
mkdir -p "$MOUNT_DIR" "$DEST_DIR"