Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

1 Answer 1

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.