Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've got a pretty robust backup strategy going. One of the media I use is a USB flash drive which I keep in a safe, this one is used least often. I must have not backed up since the last daylight savings time, because I just went to run a backup to it and I noticed every single file was being replaced because of the modification time. Before it finished I checked the mod time on my computer compared to the usb flash drive and noticed everything was off by an hour.
How can I avoid these full backups twice a year?
Also, isn't rsync supposed to do differential transfers? If the file is the same except for the mod time? Shouldn't just the time be updated? My laptop is using ext3 and the usb flash drive is using vfat. If I change the flash drive to ext3, will anything change?
--size-only
Normally rsync will not transfer any files that are already the
same size and have the same modification time-stamp. With the
--size-only option, files will not be transferred if they have
the same size, regardless of timestamp. This is useful when
starting to use rsync after using another mirroring system which
may not preserve timestamps exactly.
The above tells you that rsync specifically looks at modification time to determine whether a file has been changed. You have to add the --size-only flag if you do NOT want it to look at modification time.
I want it to look at the modification time. My problem is two-fold.
1) Twice a year the modification times are going to change (or so it seems). This isn't so bad except for:
2) The files have been unmodified. Shouldn't the rsync algorithm not be transferring the whole file? I even have the --no-whole-file option explicitly set. Changing the modification times on every file shouldn't take all that long, except in my case it seems the whole file is being replaced.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.