Re: why does this rsync commands copy again the same files?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Am 22.11.2012 23:21, schrieb M. Fioretti:
> On Thu, Nov 22, 2012 23:07:33 PM +0100, Reindl Harald wrote:
> 
>> as said: please compare the timestamp on the target most likely the
>> timestamp on vfat contains daylight-savings which is not the case on
>> unix-filesystems
> 
> Indeed! Thanks. Here are the outputs of fstat on two copies of the
> same file, just rsync-ed from the ext4 folder to the vfat ext drive:
> 
> [marco@avalon LACIE]$ stat  --format "%y" /home/z/photo/2011/20110719/P1110546.JPG
> 2011-07-19 07:28:36.000000000 +0200
> [marco@avalon LACIE]$ stat  --format "%y" /media/LACIE/photo/2011/20110719/P1110546.JPG
> 2011-07-19 06:28:36.000000000 +0200
> 
> OK, thanks you got it exactly right!!! But, now what? Is there any way
> to keep the drive vfat AND end this problem, without losing file
> modification time? I'd really like to keep the vfat simply because some of
> those drives are not mine 

google says:

http://lwn.net/Articles/287428/
http://www.kernel.org/doc/Documentation/filesystems/vfat.txt

tz=UTC        -- Interpret timestamps as UTC rather than local time.
                 This option disables the conversion of timestamps
                 between local time (as used by Windows on FAT) and UTC
                 (which Linux uses internally).  This is particularly
                 useful when mounting devices (like digital cameras)
                 that are set to UTC in order to avoid the pitfalls of
                 local time.

so i guess mount the crappy vfat with the mount-param
tz=UTC should do the job



Attachment: signature.asc
Description: OpenPGP digital signature

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux