Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Suppose I run an rsync command to mirror a server, but forget to supply the -t option. The mirror will now have different timestamps to the original. What is the easiest way to fix this, without transferring all the files all over again?

share|improve this question
1  
Rsync should be intelligent enough to only update the timestamps instead of sending the whole files, AFAIK. Is this not your experience? Try using rsync --itemize-changes to see what it is doing exactly. For an explanatian, see the man page. – janmoesen Oct 30 '11 at 22:30

Run the same command again, but include the -c option. This tells rsync to run an efficient checksum on the file and make the decision to transfer/not-transfer based on the checksum.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.