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.

I have a script that sync (mirror mode) four folders between two disks. While it is running it shows the directory where it is in this very moment, and at the end it shows bytes sent, speed, etc.

I'm wondering if there is a parameter that shows the changes made at the end. For example:

  • Copied a,b,c from A/asd to B/asd

  • Deleted d,e,f from B/asd

share|improve this question
    
Are you looking for rsync -v? –  jordanm Jan 15 '13 at 0:12
    
In theory yes, I'm using -av --delete. However it lists files and directories even if they haven't had any change. –  yzT Jan 15 '13 at 0:30
    
That's not expected behavior. I just tested using rsync 3.0.7, and it did not do that. –  jordanm Jan 15 '13 at 0:52
    
probably an timestamp issue. Try to rsync with -c Option. Does it still copy excess files? –  sparkie Jan 15 '13 at 9:15
    
I've been trying out and indeed, it says when copy or delete a file. However, why when my script runs it says that some files were copied, even if they aren't modified for more than a year? The -c disable a very important check as is the last modify, so I won't use it. –  yzT Jan 15 '13 at 15:38

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.