Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am able to output rsync logs on the client machine using --log-file=FILE but I want the output to be sent to the server instead. The client is a W7 machine (cygwin) and the server a Linux NAS.

This is the command I use which successfully logs the file on the client. I'm looking to have the file sent to the server instead:

rsync -PavOs --delete --log-file=/somepath/rsynclog.txt -e "ssh -i /somepath/keyfile -p 1000" "/somepath/User/" user@hostname.com:/somepath/User/

Thanks

share|improve this question
    
If you have lost control of your question (as indicated by your edit) then please contact support via the help centre to get your accounts merged and so be able to mark an answer as correct: superuser.com/help/merging-accounts –  Mokubai Nov 2 '13 at 21:47

1 Answer 1

From the rsync manual page:

Here's a example command that requests the remote side to log what is happening:

rsync -av --rsync-path="rsync --log-file=/tmp/rlog" src/ dest/

I think this is what you are searching for.

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.