Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple shell script for downloading and organizing photos
Shell
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
config.cfg
fotobasher.sh
readme.md

readme.md

Fotobasher is a simple shell script that transfers photos from a mounted storage device (e.g., SD card), organizes the photos into folders by date, and then renames each photo using the data pulled from the photo's metadata. Photos are renamed using the YYYYMMDD-HHMMSS.EXT format, so the resulting file name looks something like this: 19700101-135547-3375.NEF.

Installation

  • Install ExifTool on your system. On Debian and Ubuntu, this can be done by executing the apt-get install libimage-exiftool-perl command as root.
  • Make the script executable using the chmod +x fotobasher.sh command.
  • Open the config.cfg file in a text editor and specify the correct values for the available parameters
    • source_dir the path to the directory on the storage device containing photos (e.g., /media/NIKON\ D90/DCIM/100NCD90/)
    • model_prefix (e.g., SONY_NEX-3N, NIKON_D90)

Usage

Insert the card with photos and run the ./fotobasher.sh config.cfg command. That's all there is to it.

Something went wrong with that request. Please try again.