Simple Photos Backup – because existing tools could not backup like I wanted.
Description: A simple photo backup script written in php that looks for all images on your disk and backs-up unique photos organized by folders named after the camera the image was taken on.
Features:
- Find unique photos
- Copy to a specified location for backup
- Sort the images based on the camera model it was taken on
Get it here: http://github.com/devadutta/Simple-Photos-Backup
Usage: php simplePhotosBackup.php
Input: allPics.txt in the same folder should contain paths to all images on your disk. I wrote another simple script to do this, but the easiest way to do it is use Everything , search for *.jpg and export it to a text file “allPics.txt”
Settings: You need to edit the php file to specify destination paths. Very simple.
The project is on github, so feel free to fork it or send me improvement patches!
Stats from my photo collection:

More detailed story
I have around 90,000 photos spread across multiple hard-disks in my house. I wanted to find the unique photos, copy them to an external hard disk and lock it up in my fire-safe. Photos are very valuable and I would not be happy if I lost any of my precious photos.
Also, I wanted to find out which photos were taken by me and which ones were taken by my brother, so I decided to split the photos into folders and name the folders to match the camera model. Simple plan.
Did it work?
Better than I expected! The script casually processed all my photos, found originals and copied it to the external disk. I found out that I have photos from around 50 different cameras! Almost all of the photos I had received from my friends/relatives were taken on a different camera and the sorting method worked amazingly well!
The script even prints out some vital statistics and the output showed that I have some major paranoia!