Photo Backup - JohnAndJanita/MyPythonScripts GitHub Wiki
photo-backup.py [-r] [pathname|filespec]
- When hundreds of photos end up in a folder, performance bogs down.
- When one has thousands of photos it is difficult to quickly find any one photo. Archiving photos based upon when they were taken helps to solve both of those issues.
This program will archive photos and videos to folders first by year and then by month.
-r = perform a folder recursive search pathname = a folder to start the search, all files in that folder will be backed up filespec = a wildcard file specifier to pick which files to be backed up
The destination for the backup must be on the same drive as the source since rename operations are used. The destination folders are defined by one of these choices, in priority order:
- %Pictures% and %Videos%
- %UserPath%/Pictures and %UserPath%/Videos
- /Pictures and /Videos
Note only pictures with a valid EXIF date will be backed up. Videos are backed up to a different folder than pictures because videos have no EXIF date.