Using rsync to download photos from camera



Hi,

I've been using rsync for many years to synchronize between local
directories or remote PCs. I've also successfully used rsync to synchronize
photos from my Pentax Optio camera to PC, so that only the newly shot photos
are copied.

However, I found the very same approach doesn't work for the Canon camera:

$ rsync -nvua /mnt/camera/dcim/*/* .
building file list ... done
[...]
img_0135.jpg
[...]

$ stat /mnt/camera/dcim/100canon/img_0135.jpg img_0135.jpg
File: `/mnt/camera/dcim/100canon/img_0135.jpg'
Size: 892127 Blocks: 1792 IO Block: 32768 regular file
Device: 811h/2065d Inode: 9817 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 9999/ tong) Gid: ( 1001/ tong)
Access: 2007-12-27 00:00:00.000000000 -0500
Modify: 2007-12-27 14:27:10.000000000 -0500
Change: 2007-12-27 14:27:10.000000000 -0500
File: `img_0135.jpg'
Size: 885981 Blocks: 1737 IO Block: 131072 regular file
Device: 80eh/2062d Inode: 166857 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 9999/ tong) Gid: ( 1001/ tong)
Access: 2007-12-27 14:27:10.000000000 -0500
Modify: 2007-12-27 14:27:10.000000000 -0500
Change: 2007-12-27 21:53:41.000000000 -0500

I.e., rsync insists to copy again files that have already been copied,
although I see no obvious reason why it is doing so.

Please comment.

Thanks a lot


--
Tong (remove underscore(s) to reply)
http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Using rsync to download photos from camera
    ... I've been using rsync for many years to synchronize between local ... and only transfer the newer .deb files. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: [opensuse] Can I do this with rsync? (scripts)
    ... interpret the script, even if someone's login shell is csh or tcsh. ... location destination file location. ... I synchronize only key directory trees between ... rsync will notice that there is an extra file at the ...
    (SuSE)
  • Re: Recommended Linux Backup correction
    ... directories with diff files on them on a single remote target. ... that you should reconsider rsync, but not in the way that you seem to ... I think there are a lot of different ideas as to what a backup system ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Will rsync fix iso-file checksum failure?
    ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... I never tried repairing a broken file using rsync, but it looks like the option you want is -c: ... This option changes this to compare a 128-bit checksum for each ... that both sides will expend a lot of disk I/O reading all the ...
    (Debian-User)
  • Re: copying files from home directory on one machine to directory on another machine
    ... copy files from a home directory on one machine to a directory on ... subject of "unsubscribe". ... If you can ssh from One to Two ... If you don't have rsync, you can use scp -r to recursively copy almost identically - but the nice thing about ...
    (Debian-User)