It looks like you're new here. If you want to get involved, click one of these buttons!
I have been a happy user since the issues of missing files were resolved from a previous thread. Thanks for the great app!
Recently, I noticed that some photos were uploaded with wrong timestamp. The photo was taken last year, however it showed a timestamp of several days ago around mid night on the NAS.
When I tried to manually select photos to sync from the options, I noticed that some photos (~ 20 out of 1000) are also shown with incorrect chronological order, consistent with the timestamp issue above.
I am pretty sure that this happened recently. I can confirm that the same photo was uploaded with correct timestamp before.
The only changes I can think of:
1) iOS was updated to latest 10.1.1
2) More photos were taken
3) PhotoBackup app was updated to latest 1.7
I suspect that the iOS update is more likely to be the cause? I'm happy to help debug again if necessary.
Comments
Hmm..
I checked the timestamps on a PC as you suggested. You are right, the "Created" time is as expected, but the "Modified" time is mysteriously recent. I am not using any photo editing apps on the iPhone other than the native photo app. I double checked that the photo in question was not modified in the native photo app. Really puzzling - no idea how the modification time was updated. Can you think of anything that may cause this?
On a separate note, if PhotoBackup can preserve both modification and creation time, that'd be great. Otherwise maybe it is useful to have an option to toggle timestamp source between creation or modification time. In my case, I occasionally touch up the photo after a long time. It'd be nice to back it up on the NAS using creation time, because on the PC when I search / view a photo, the creation time is most relevant.
Just a suggestion, not sure if you have time or if it makes sense for most users.
Thanks!
PS. I checked all the iPhones in family running 10.1.1 - same issue with mysterious modification time. The one iPhone running ios 9 doesn't have the problem. Can't say for sure its iOS 10.1.1 causing this, but at least feels that way.. Any user have the same?
Good to know it's not just me :) I was looking into it more closely - it seems that a lot of photos with updated modification times appear in the thumbnails from "Memories" and "Albums" sections within the iPhone Photos app. Those are new features for iOS 10 - could be related.
In any case, I can imagine it would take Apple a long time to address this, if at all. Maybe the modification time change is legit in their view if those photos are later selected for album headings. Unless you can find a workaround, I guess the best can be done is to add a user option to use creation times?
gchen - Did u get a chance to look at this further? Thanks!
I just tried iOS 10.2, nothing changed. My feeling is this could be a different issue - people in that thread are complaining about camera roll out of order after restoring from backup. In our case, the camera roll is displayed in order on the phone. However some photos have updated modification times. Those photos seem to appear as header photos under "album" and "memories" sections in iOS 10. Apple probably say it is legitimate to update the modification times because those photos were selected for album headings. If that's the case, we may never get a "fix"...
I agree this there's some danger of adding an option to use creation time. One scenario is if a photo has been backed up, and later edited, then it is possible that rsync thinks there's nothing new to upload based on creation time. However, the file size would most likely change after editing, therefore triggering an upload again.
Right now, without that option, PhotoBackup can not really function anymore. Every time it will re-upload a lot of pictures, and destroy the original timestamps long the way. It seems adding an option would do more good than harm?
Would you consider using creation time as well when 'backup original version' option is turned off? or add another option for using creation time?
In the context of this app, which is backing up iOS photos, I would argue that the most relevant timestamp is the creation time. Even in the case of legitimate editing afterwards, I would prefer knowing the original time when the picture was taken, rather than the modification time. Now there's a risk that rsync may skip a modified file since there's no creation timestamp change. However the file size would change for sure, making the issue very unlikely.
It's unfortunate that iOS is messing with the modification timestamps. I couldn't use the app for my regular back up tasks now. Do you have any other ideas?
Using IOS 10.2 and jailbreak. Using a test PNG photo that was a simple screenshot created using pressing power and home buttons and no other modifications on phone. No iCloud Photo Library enabled.
Transferring using rsync from Media/DCIM/1XXAPPLE:
- modify timestamps identical on phone and on remote linux
Transferring using PhotoBackup
- modify timestamps different on linux than on phone.
*something* must be going wrong either between IOS and PhotoBackup, or between PhotoBackup and Linux. Can we have a debug version that writes some text debug log to see what it asked to IOS and what it received from IOS, as well as what did it talk to Linux?
I can also provide remote ssh to my phone if that helps.
On phone:
# stat -c %y /User/Media/DCIM/109APPLE/IMG_9670.PNG
2018-03-02 00:09:50.000000000 +0200
On linux via rsync:
# stat -c %y /tmp/IMG_9670.PNG
2018-03-02 00:09:50.000000000 +0200
On linux via PhotoBackup:
stat -c %y /tmp/ph/IMG_9670.PNG
2018-03-02 12:04:52.000000000 +0200
I'd pretty much want to preserve the file modification time and not from exif. Can that be an option so some users to choose one or another?
on phone
iphone:/User/Media/DCIM/109APPLE root# stat --help|grep Time
%w Time of file birth, human-readable; - if unknown
%W Time of file birth, seconds since Epoch; 0 if unknown
%x Time of last access, human-readable
%X Time of last access, seconds since Epoch
%y Time of last modification, human-readable
%Y Time of last modification, seconds since Epoch
%z Time of last change, human-readable
%Z Time of last change, seconds since Epoch
iphone:/User/Media/DCIM/109APPLE root# stat --printf=%w\\n%x\\n%y\\n%z\\n IMG_9716.PNG
2018-03-06 22:08:41.000000000 +0200
2018-03-06 22:08:41.000000000 +0200
2018-03-06 22:08:41.000000000 +0200
2018-03-06 22:08:41.000000000 +0200
on linux, via `rsync -axPHAX`:
root@srv:/tmp# stat /tmp/rsync/IMG_9716.PNG
File: '/tmp/rsync/IMG_9716.PNG'
Size: 130716 Blocks: 264 IO Block: 4096 regular file
Device: 893h/2195d Inode: 413239 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 501/ UNKNOWN) Gid: ( 501/ UNKNOWN)
Access: 2018-03-06 23:50:07.347712888 +0200
Modify: 2018-03-06 22:08:41.000000000 +0200
Change: 2018-03-06 23:49:39.211762425 +0200
Birth: -
on linux, via PhotoBackup:
root@srv:/tmp# stat /tmp/ph/IMG_9716.PNG
File: '/tmp/ph/IMG_9716.PNG'
Size: 130716 Blocks: 256 IO Block: 4096 regular file
Device: 893h/2195d Inode: 413092 Links: 1
Access: (0444/-r--r--r--) Uid: ( 1001/ user) Gid: ( 1001/ user)
Access: 2018-03-06 23:50:07.347712888 +0200
Modify: 2018-03-06 22:18:18.000000000 +0200
Change: 2018-03-06 23:48:14.775911088 +0200
Birth: -
ip of server
username
password
/tmp/ph/
select photos: about 50 files
backup original: off
skip: on
create time machine: off
port 22
proto ssh
key off
on phone
Access: 2018-03-07 21:12:20.000000000 +0200
Modify: 2018-03-07 21:12:20.000000000 +0200
Change: 2018-03-07 21:12:20.000000000 +0200
Birth: 2018-03-07 21:12:20.000000000 +0200
on rsync
exiftool | grep Date
File Modification Date/Time : 2018:03:07 21:12:20+02:00
File Access Date/Time : 2018:03:07 22:17:05+02:00
File Inode Change Date/Time : 2018:03:07 22:16:55+02:00
Date Created : 2018:03:07 21:12:19
on photobackup with backup original ON
exiftool | grep Date
File Modification Date/Time : 2018:03:07 21:12:19+02:00
File Access Date/Time : 2018:03:07 22:17:53+02:00
File Inode Change Date/Time : 2018:03:07 22:17:42+02:00
Date Created : 2018:03:07 21:12:19
------------------------------------------------------------------------------------------------
same photo, edited (iphone saves the edited version as ~/Media/PhotoData/Mutations/DCIM/<FOLDER NAME>/<IMAGE NAME>/Adjustments/FullSizeRender.jpg)
on phone, edited
C:~ root# stat /User/Media/PhotoData/Mutations/DCIM/109APPLE/IMG_9731/Adjustments/FullSizeRender.jpg
File: `/User/Media/PhotoData/Mutations/DCIM/109APPLE/IMG_9731/Adjustments/FullSizeRender.jpg'
Size: 118264 Blocks: 232 IO Block: 4096 regular file
Device: 1000003h/16777219d Inode: 28574937 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 501/ mobile) Gid: ( 0/ wheel)
Access: 2018-03-07 22:39:39.000000000 +0200
Modify: 2018-03-07 22:39:39.000000000 +0200
Change: 2018-03-07 22:39:39.000000000 +0200
Birth: 2018-03-07 22:39:39.000000000 +0200
on phone, original
C:~ root# stat /User/Media/DCIM/109APPLE/IMG_9731.PNG
File: `/User/Media/DCIM/109APPLE/IMG_9731.PNG'
Size: 276082 Blocks: 544 IO Block: 4096 regular file
Device: 1000003h/16777219d Inode: 28572534 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 501/ mobile) Gid: ( 501/ mobile)
Access: 2018-03-07 21:12:20.000000000 +0200
Modify: 2018-03-07 21:12:20.000000000 +0200
Change: 2018-03-07 21:12:20.000000000 +0200
Birth: 2018-03-07 21:12:20.000000000 +0200
on rsync, original
root@gen8:~# rsync -avxPHAX -e 'ssh -o port=22222' 192.168.13.48:/User/Media/DCIM/109APPLE/IMG_9731.PNG /tmp/rsync/IMG_9731.PNG receiving incremental file list
sent 11 bytes received 566 bytes 384.67 bytes/sec
total size is 276,082 speedup is 478.48
root@gen8:~# stat /tmp/rsync/IMG_9731.PNG
File: '/tmp/rsync/IMG_9731.PNG'
Size: 276082 Blocks: 552 IO Block: 4096 regular file
Device: 893h/2195d Inode: 409260 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 501/ UNKNOWN) Gid: ( 501/ UNKNOWN)
Access: 2018-03-07 22:17:05.746164232 +0200
Modify: 2018-03-07 21:12:20.000000000 +0200
Change: 2018-03-07 22:16:55.318184851 +0200
Birth: -
rsync, edited
root@gen8:~# rsync -avxPHAX -e 'ssh -o port=22222' 192.168.13.48:/User/Media/PhotoData/Mutations/DCIM/109APPLE/IMG_9731/Adjustments/FullSizeRender.jpg /tmp/rsync/FullSizeRender.jpg
receiving incremental file list
sent 11 bytes received 61 bytes 48.00 bytes/sec
total size is 118,264 speedup is 1,642.56
root@gen8:~# stat /tmp/rsync/FullSizeRender.jpg
File: '/tmp/rsync/FullSizeRender.jpg'
Size: 118264 Blocks: 232 IO Block: 4096 regular file
Device: 893h/2195d Inode: 413248 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 501/ UNKNOWN) Gid: ( 0/ root)
Access: 2018-03-07 22:44:24.722933087 +0200
Modify: 2018-03-07 22:39:39.000000000 +0200
Change: 2018-03-07 22:44:19.666943008 +0200
Birth: -
on photobackup, backup original ON
root@gen8:~# exiftool /tmp/ph/IMG_9731.PNG |grep Date
File Modification Date/Time : 2018:03:07 21:12:19+02:00
File Access Date/Time : 2018:03:07 22:17:53+02:00
File Inode Change Date/Time : 2018:03:07 22:17:42+02:00
Date Created : 2018:03:07 21:12:19
photobackup backup original OFF
root@gen8:~# exiftool /tmp/ph/IMG_9731.jpg |grep Date
File Modification Date/Time : 2018:03:07 22:39:39+02:00
File Access Date/Time : 2018:03:07 22:51:12+02:00
File Inode Change Date/Time : 2018:03:07 22:45:38+02:00
Date/Time Original : 2018:03:07 21:12:19
Date Created : 2018:03:07 21:12:19