LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 04-11-2008, 01:06 PM   #1
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 67
Ewww- rsync backups with daylight savings time


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?
 
Old 04-11-2008, 04:06 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
From rsync's man page:

Quote:
--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.
 
Old 04-11-2008, 04:36 PM   #3
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Original Poster
Rep: Reputation: 67
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync confused by daylight savings? Nick_Battle Linux - General 1 03-27-2007 07:13 AM
Daylight Savings time depdiver Linux - General 4 03-13-2006 01:30 PM
Daylight savings time depdiver Red Hat 2 02-21-2006 10:00 AM
Daylight savings time Jeebizz Slackware 13 11-21-2005 08:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration