rsync writes to mounted NFS shares

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












QQ - I have remote directories that became unavailable last weekend but my servers were unaware of it so it was still "mounted" despite the fact that it was unreachable.



If I try to rsync data to an NFS mount is "mounted" but cannot be reached and am using the "remove source files" option what will happen? Will the data be removed despite the fact that it couldn't be written or will the entire operation fail and the source file never be touched?



Thanks.







share|improve this question
























    up vote
    0
    down vote

    favorite












    QQ - I have remote directories that became unavailable last weekend but my servers were unaware of it so it was still "mounted" despite the fact that it was unreachable.



    If I try to rsync data to an NFS mount is "mounted" but cannot be reached and am using the "remove source files" option what will happen? Will the data be removed despite the fact that it couldn't be written or will the entire operation fail and the source file never be touched?



    Thanks.







    share|improve this question






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      QQ - I have remote directories that became unavailable last weekend but my servers were unaware of it so it was still "mounted" despite the fact that it was unreachable.



      If I try to rsync data to an NFS mount is "mounted" but cannot be reached and am using the "remove source files" option what will happen? Will the data be removed despite the fact that it couldn't be written or will the entire operation fail and the source file never be touched?



      Thanks.







      share|improve this question












      QQ - I have remote directories that became unavailable last weekend but my servers were unaware of it so it was still "mounted" despite the fact that it was unreachable.



      If I try to rsync data to an NFS mount is "mounted" but cannot be reached and am using the "remove source files" option what will happen? Will the data be removed despite the fact that it couldn't be written or will the entire operation fail and the source file never be touched?



      Thanks.









      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 7 at 16:52









      J Telep

      1025




      1025




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          The entire operation will fail.



          If in doubt, create a test file and attempt to copy it (just it) to the remote filesystem



          ps -ef > /tmp/sacrifice
          rsync -iavP --remove-source-files /tmp/sacrifice /path/to/NFS/filesystem/
          ls -l /tmp/sacrifice





          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            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: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );








             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f422589%2frsync-writes-to-mounted-nfs-shares%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            The entire operation will fail.



            If in doubt, create a test file and attempt to copy it (just it) to the remote filesystem



            ps -ef > /tmp/sacrifice
            rsync -iavP --remove-source-files /tmp/sacrifice /path/to/NFS/filesystem/
            ls -l /tmp/sacrifice





            share|improve this answer
























              up vote
              0
              down vote













              The entire operation will fail.



              If in doubt, create a test file and attempt to copy it (just it) to the remote filesystem



              ps -ef > /tmp/sacrifice
              rsync -iavP --remove-source-files /tmp/sacrifice /path/to/NFS/filesystem/
              ls -l /tmp/sacrifice





              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                The entire operation will fail.



                If in doubt, create a test file and attempt to copy it (just it) to the remote filesystem



                ps -ef > /tmp/sacrifice
                rsync -iavP --remove-source-files /tmp/sacrifice /path/to/NFS/filesystem/
                ls -l /tmp/sacrifice





                share|improve this answer












                The entire operation will fail.



                If in doubt, create a test file and attempt to copy it (just it) to the remote filesystem



                ps -ef > /tmp/sacrifice
                rsync -iavP --remove-source-files /tmp/sacrifice /path/to/NFS/filesystem/
                ls -l /tmp/sacrifice






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 7 at 18:34









                roaima

                39.6k545108




                39.6k545108






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f422589%2frsync-writes-to-mounted-nfs-shares%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?