Stop rsync when external drive disconnects

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








up vote
1
down vote

favorite












When external drive gets disconnected while rsync is doing its backup job to the external drive, rsync will continue to copy files to my local drive instead of interrupting the process, filling up the space to the very last byte.



Is there any way to change mount point permission upon disconnecting the drive? Or some clever way to prevent this?










share|improve this question

























    up vote
    1
    down vote

    favorite












    When external drive gets disconnected while rsync is doing its backup job to the external drive, rsync will continue to copy files to my local drive instead of interrupting the process, filling up the space to the very last byte.



    Is there any way to change mount point permission upon disconnecting the drive? Or some clever way to prevent this?










    share|improve this question























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      When external drive gets disconnected while rsync is doing its backup job to the external drive, rsync will continue to copy files to my local drive instead of interrupting the process, filling up the space to the very last byte.



      Is there any way to change mount point permission upon disconnecting the drive? Or some clever way to prevent this?










      share|improve this question













      When external drive gets disconnected while rsync is doing its backup job to the external drive, rsync will continue to copy files to my local drive instead of interrupting the process, filling up the space to the very last byte.



      Is there any way to change mount point permission upon disconnecting the drive? Or some clever way to prevent this?







      mount backup rsync






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 18 at 11:04









      Sebastian

      4131719




      4131719

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          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: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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%2faskubuntu.com%2fquestions%2f1016964%2fstop-rsync-when-external-drive-disconnects%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1016964%2fstop-rsync-when-external-drive-disconnects%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          GRUB: Fatal! inconsistent data read from (0x84) 0+xxxxxx

          What makes Checkinstall packages not suitable for distribution?

          Running the scala interactive shell from the command line