Stop rsync when external drive disconnects

Clash 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?
mount backup rsync
add a comment |Â
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?
mount backup rsync
add a comment |Â
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?
mount backup rsync
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
mount backup rsync
asked Mar 18 at 11:04
Sebastian
4131719
4131719
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password