LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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, 02:06 PM   #1
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 66
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, 05:06 PM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,026
Blog Entries: 5

Rep: Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789
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, 05:36 PM   #3
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:13 AM
Daylight Savings time depdiver Linux - General 4 03-13-2006 02:30 PM
Daylight savings time depdiver Red Hat 2 02-21-2006 11:00 AM
Daylight savings time Jeebizz Slackware 13 11-21-2005 09:08 PM


All times are GMT -5. The time now is 09:05 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration