Last active
November 21, 2023 20:16
-
-
Save apsun/e9aa4283d879fdfc7459082e53c8b0f2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # | |
| # Sync photos from iPhone to Linux using libimobiledevice + ifuse | |
| set -euo pipefail | |
| if [ $# -ne 1 ]; then | |
| echo "usage: $0 <dest dir>" | |
| exit 1 | |
| fi | |
| mnt="$(mktemp -d)" | |
| ifuse "${mnt}" | |
| rsync --exclude=".*" --archive --progress --inplace "${mnt}/DCIM/." "$1" | |
| fusermount -u "${mnt}" | |
| rmdir "${mnt}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment