Created
December 8, 2020 08:59
-
-
Save ramnes/d3eb5ef62276ea4a2b21d8755e3db97f to your computer and use it in GitHub Desktop.
Dump any device media content with gphoto2
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/bash | |
date=$(date --rfc-3339=date) | |
mkdir "dump-$date" | |
cd "dump-$date" | |
gphoto2 --auto-detect | |
gphoto2 --get-all-files --skip-existing | |
cd - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment