1

I backup my LAMP server using RSync over SSH.

Currently, it's on an hourly incremental schedule.

From a 14GB full backup, it's backing up a further 15~MB hourly.

Looking at the files it's backing up again, I think most of these haven't changed.

Does the file last accessed time attribute mean the file has technically changed and would be re-backed up?

i-CONICA
  • 648
  • 1
  • 9
  • 22

1 Answers1

1

No, rsync does not check the access time (atime) of a file. Instead, it use the modified and changed times (ctime/mtime) to check if a file changed.

What you should pay attention, however, is that rsync is preserving mtime (-t option) in the fist place. If not, any further attempt will re-sync the same files.

rsync -a includes '-rlptgoD' options, so if you use '-a' it will be sufficient.

shodanshok
  • 47,711
  • 7
  • 111
  • 180