outdoorbits / little-backup-box

This software turns a single-board computer into a versatile, pocket-sized backup solution. Especially for digital photography, this is the solution for backing up images and media files on mass storage devices when traveling or at events. Media content can be viewed and rated for the subsequent process.
http://littlebackupbox.com
GNU General Public License v3.0
510 stars 103 forks source link

camera-backup.sh doesn't copy over all photos taken in burst mode #29

Closed jealousofyou closed 6 years ago

jealousofyou commented 6 years ago

If photos have been taken in burst mode then the files can have timestamps with the same hour, minute and second.

With the current file naming option: gphoto2 --get-all-files --skip-existing --filename=%Y%m%d-%H%M%S.%C only the first file taken in a particular second will be copied over. The others taken in the same second will be skipped because the name is already taken.

The --filename option takes the same time granularity as date(1) which only offers nanoseconds as a more accurate timestamp. If you don't want to use that then there might be no option but to include another source of uniqueness (maybe %f, the original filename without suffix, e.g. DSC_1234) as part of the target filename on storage medium.

dmpop commented 6 years ago

Alternatively, you can simple remove the --filename=%Y%m%d-%H%M%S.%C part to keep the original file names.

jealousofyou commented 3 years ago

Now that the --filename option has been removed from camera-backup.ch, can you also remove the "Rename the transferred files using the YYYYMMDD-HHMMSS.SS format" comment above it?

dmpop commented 3 years ago

Done. Thanks!