Prevent shutdown when rsnapshot is running

Posted by highsciguy on Ask Ubuntu See other posts from Ask Ubuntu or by highsciguy
Published on 2012-07-16T08:33:01Z Indexed on 2012/09/24 9:51 UTC
Read the original article Hit count: 283

Filed under:
|
|

Since shutdowns during rsnapshot operation will lead to inconsistent/partial backups, I wonder how to delay the system shutdown while rsnapshot is active. The task is complicated by the fact that I need a solution which is compatible with non-expert users. I.e. I need to tell reliably to the user that he needs to wait until the process is finished and not to do a hard reset. Once this is the case shutdown should continue. A possible solution could be to replace the action of the window managers (mostly KDE) shutdown/restart/hibernate buttons by a script which first checks if rsync is active and shows a message if this is the case. But I do not know if this is possible in KDE.

© Ask Ubuntu or respective owner

Related posts about kde

Related posts about shutdown