rsync option --log-file seems not to be working











up vote
1
down vote

favorite












I am using the --log-file option in rsync to see the logs. But when I tried to run, it says:



 --log-file unrecognized option


Here is my command:



#/usr/bin/rsync -av -u --log-file="/sreeni/log.txt" --rsync-path=/usr/local/bin/rsync /sreeni nnmhpt20.ind.hp.com:/sreeni


could some one help me with the right syntax ?



I tried these options also.



#/usr/bin/rsync -av -u --log-file /sreeni/log.txt --rsync-path=/usr/local/bin/rsync /sreeni nnmhpt20.ind.hp.com:/sreeni


and



#/usr/bin/rsync -av -u --log-file="/sreeni/log.txt" --rsync-path=/usr/local/bin/rsync /sreeni nnmhpt20.ind.hp.com:/sreeni









share|improve this question















migrated from stackoverflow.com Nov 12 '11 at 13:11


This question came from our site for professional and enthusiast programmers.



















    up vote
    1
    down vote

    favorite












    I am using the --log-file option in rsync to see the logs. But when I tried to run, it says:



     --log-file unrecognized option


    Here is my command:



    #/usr/bin/rsync -av -u --log-file="/sreeni/log.txt" --rsync-path=/usr/local/bin/rsync /sreeni nnmhpt20.ind.hp.com:/sreeni


    could some one help me with the right syntax ?



    I tried these options also.



    #/usr/bin/rsync -av -u --log-file /sreeni/log.txt --rsync-path=/usr/local/bin/rsync /sreeni nnmhpt20.ind.hp.com:/sreeni


    and



    #/usr/bin/rsync -av -u --log-file="/sreeni/log.txt" --rsync-path=/usr/local/bin/rsync /sreeni nnmhpt20.ind.hp.com:/sreeni









    share|improve this question















    migrated from stackoverflow.com Nov 12 '11 at 13:11


    This question came from our site for professional and enthusiast programmers.

















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I am using the --log-file option in rsync to see the logs. But when I tried to run, it says:



       --log-file unrecognized option


      Here is my command:



      #/usr/bin/rsync -av -u --log-file="/sreeni/log.txt" --rsync-path=/usr/local/bin/rsync /sreeni nnmhpt20.ind.hp.com:/sreeni


      could some one help me with the right syntax ?



      I tried these options also.



      #/usr/bin/rsync -av -u --log-file /sreeni/log.txt --rsync-path=/usr/local/bin/rsync /sreeni nnmhpt20.ind.hp.com:/sreeni


      and



      #/usr/bin/rsync -av -u --log-file="/sreeni/log.txt" --rsync-path=/usr/local/bin/rsync /sreeni nnmhpt20.ind.hp.com:/sreeni









      share|improve this question















      I am using the --log-file option in rsync to see the logs. But when I tried to run, it says:



       --log-file unrecognized option


      Here is my command:



      #/usr/bin/rsync -av -u --log-file="/sreeni/log.txt" --rsync-path=/usr/local/bin/rsync /sreeni nnmhpt20.ind.hp.com:/sreeni


      could some one help me with the right syntax ?



      I tried these options also.



      #/usr/bin/rsync -av -u --log-file /sreeni/log.txt --rsync-path=/usr/local/bin/rsync /sreeni nnmhpt20.ind.hp.com:/sreeni


      and



      #/usr/bin/rsync -av -u --log-file="/sreeni/log.txt" --rsync-path=/usr/local/bin/rsync /sreeni nnmhpt20.ind.hp.com:/sreeni






      rsync






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jul 10 '15 at 22:35









      Sopalajo de Arrierez

      3,87883878




      3,87883878










      asked Nov 12 '11 at 9:32







      user1017735











      migrated from stackoverflow.com Nov 12 '11 at 13:11


      This question came from our site for professional and enthusiast programmers.






      migrated from stackoverflow.com Nov 12 '11 at 13:11


      This question came from our site for professional and enthusiast programmers.
























          3 Answers
          3






          active

          oldest

          votes

















          up vote
          0
          down vote













          Which is your distro?
          For an agnostic distro aproach you can use simple output redirection.



          rsync your_chosen_options >> chosen_logfile 2>&1



          which turns into,



          /usr/bin/rsync -av -u /sreeni nnmhpt20.ind.hp.com:/sreeni >> /sreeni/log.txt 2>&1


          Anyways for Debian based boxes, this seems to work,



          rsync -av -u --log-file=/var/log/atest.log SRC DEST 2>&1 1>/dev/null


          whereas for RHEL I needed,



          rsync -av -u SRC DEST 1>>/var/log/atest.log 2>/dev/null





          share|improve this answer




























            up vote
            0
            down vote













            this expression works for me (ubuntu 12.10):



            sudo rsync -axzuvh --force --delete --no-whole-file --log-file=/var/log/atest.log SRC DEST


            remember using sudo.






            share|improve this answer




























              up vote
              0
              down vote













              I found this way works for me:



              rsync -av /source/directory/ /destination/directory/ &> ~/todaysDate-sync.log &





              share|improve this answer





















                Your Answer








                StackExchange.ready(function() {
                var channelOptions = {
                tags: "".split(" "),
                id: "3"
                };
                initTagRenderer("".split(" "), "".split(" "), channelOptions);

                StackExchange.using("externalEditor", function() {
                // Have to fire editor after snippets, if snippets enabled
                if (StackExchange.settings.snippets.snippetsEnabled) {
                StackExchange.using("snippets", function() {
                createEditor();
                });
                }
                else {
                createEditor();
                }
                });

                function createEditor() {
                StackExchange.prepareEditor({
                heartbeatType: 'answer',
                convertImagesToLinks: true,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: 10,
                bindNavPrevention: true,
                postfix: "",
                imageUploader: {
                brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                allowUrls: true
                },
                onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                });


                }
                });














                draft saved

                draft discarded


















                StackExchange.ready(
                function () {
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f356671%2frsync-option-log-file-seems-not-to-be-working%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown
























                3 Answers
                3






                active

                oldest

                votes








                3 Answers
                3






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes








                up vote
                0
                down vote













                Which is your distro?
                For an agnostic distro aproach you can use simple output redirection.



                rsync your_chosen_options >> chosen_logfile 2>&1



                which turns into,



                /usr/bin/rsync -av -u /sreeni nnmhpt20.ind.hp.com:/sreeni >> /sreeni/log.txt 2>&1


                Anyways for Debian based boxes, this seems to work,



                rsync -av -u --log-file=/var/log/atest.log SRC DEST 2>&1 1>/dev/null


                whereas for RHEL I needed,



                rsync -av -u SRC DEST 1>>/var/log/atest.log 2>/dev/null





                share|improve this answer

























                  up vote
                  0
                  down vote













                  Which is your distro?
                  For an agnostic distro aproach you can use simple output redirection.



                  rsync your_chosen_options >> chosen_logfile 2>&1



                  which turns into,



                  /usr/bin/rsync -av -u /sreeni nnmhpt20.ind.hp.com:/sreeni >> /sreeni/log.txt 2>&1


                  Anyways for Debian based boxes, this seems to work,



                  rsync -av -u --log-file=/var/log/atest.log SRC DEST 2>&1 1>/dev/null


                  whereas for RHEL I needed,



                  rsync -av -u SRC DEST 1>>/var/log/atest.log 2>/dev/null





                  share|improve this answer























                    up vote
                    0
                    down vote










                    up vote
                    0
                    down vote









                    Which is your distro?
                    For an agnostic distro aproach you can use simple output redirection.



                    rsync your_chosen_options >> chosen_logfile 2>&1



                    which turns into,



                    /usr/bin/rsync -av -u /sreeni nnmhpt20.ind.hp.com:/sreeni >> /sreeni/log.txt 2>&1


                    Anyways for Debian based boxes, this seems to work,



                    rsync -av -u --log-file=/var/log/atest.log SRC DEST 2>&1 1>/dev/null


                    whereas for RHEL I needed,



                    rsync -av -u SRC DEST 1>>/var/log/atest.log 2>/dev/null





                    share|improve this answer












                    Which is your distro?
                    For an agnostic distro aproach you can use simple output redirection.



                    rsync your_chosen_options >> chosen_logfile 2>&1



                    which turns into,



                    /usr/bin/rsync -av -u /sreeni nnmhpt20.ind.hp.com:/sreeni >> /sreeni/log.txt 2>&1


                    Anyways for Debian based boxes, this seems to work,



                    rsync -av -u --log-file=/var/log/atest.log SRC DEST 2>&1 1>/dev/null


                    whereas for RHEL I needed,



                    rsync -av -u SRC DEST 1>>/var/log/atest.log 2>/dev/null






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Nov 12 '11 at 11:46









                    Joao Figueiredo

                    22114




                    22114
























                        up vote
                        0
                        down vote













                        this expression works for me (ubuntu 12.10):



                        sudo rsync -axzuvh --force --delete --no-whole-file --log-file=/var/log/atest.log SRC DEST


                        remember using sudo.






                        share|improve this answer

























                          up vote
                          0
                          down vote













                          this expression works for me (ubuntu 12.10):



                          sudo rsync -axzuvh --force --delete --no-whole-file --log-file=/var/log/atest.log SRC DEST


                          remember using sudo.






                          share|improve this answer























                            up vote
                            0
                            down vote










                            up vote
                            0
                            down vote









                            this expression works for me (ubuntu 12.10):



                            sudo rsync -axzuvh --force --delete --no-whole-file --log-file=/var/log/atest.log SRC DEST


                            remember using sudo.






                            share|improve this answer












                            this expression works for me (ubuntu 12.10):



                            sudo rsync -axzuvh --force --delete --no-whole-file --log-file=/var/log/atest.log SRC DEST


                            remember using sudo.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered May 11 '13 at 19:31









                            moltisanti

                            16112




                            16112






















                                up vote
                                0
                                down vote













                                I found this way works for me:



                                rsync -av /source/directory/ /destination/directory/ &> ~/todaysDate-sync.log &





                                share|improve this answer

























                                  up vote
                                  0
                                  down vote













                                  I found this way works for me:



                                  rsync -av /source/directory/ /destination/directory/ &> ~/todaysDate-sync.log &





                                  share|improve this answer























                                    up vote
                                    0
                                    down vote










                                    up vote
                                    0
                                    down vote









                                    I found this way works for me:



                                    rsync -av /source/directory/ /destination/directory/ &> ~/todaysDate-sync.log &





                                    share|improve this answer












                                    I found this way works for me:



                                    rsync -av /source/directory/ /destination/directory/ &> ~/todaysDate-sync.log &






                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered May 10 '15 at 14:48









                                    D.Zou

                                    1286




                                    1286






























                                        draft saved

                                        draft discarded




















































                                        Thanks for contributing an answer to Super User!


                                        • Please be sure to answer the question. Provide details and share your research!

                                        But avoid



                                        • Asking for help, clarification, or responding to other answers.

                                        • Making statements based on opinion; back them up with references or personal experience.


                                        To learn more, see our tips on writing great answers.





                                        Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                                        Please pay close attention to the following guidance:


                                        • Please be sure to answer the question. Provide details and share your research!

                                        But avoid



                                        • Asking for help, clarification, or responding to other answers.

                                        • Making statements based on opinion; back them up with references or personal experience.


                                        To learn more, see our tips on writing great answers.




                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function () {
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f356671%2frsync-option-log-file-seems-not-to-be-working%23new-answer', 'question_page');
                                        }
                                        );

                                        Post as a guest















                                        Required, but never shown





















































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown

































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown







                                        Popular posts from this blog

                                        Probability when a professor distributes a quiz and homework assignment to a class of n students.

                                        Aardman Animations

                                        Are they similar matrix