Photo Backup with Image Gallery On Top

I’d like to use my Raspberry Pi as a backup server for my photos and have an Image Gallery for anyone to browse them on my network.

I saw the single file php gallery but I think I want something a bit more.
This looks interesting, although I haven’t tried it out yet:

I have been using tools like and for renaming my photos based on Exif data and sorting them by year/month. It would be nice if that part could be done on the server.

Once files are renamed there would have to be a hash or something to prevent duplicates being uploaded too though.

Versioning of the files to prevent accidental overwrites will probably have to occur too.

The more I write down the more requirements keep popping out!
Has anyone got any suggestions?