Temporarily prevent linux from shutting down

前端 未结 6 2084
暖寄归人
暖寄归人 2021-01-11 14:06

I have a backup script that runs in the background daily on my linux (Fedora 9) computer. If the computer is shut down while the backup is in progress the backup may be dama

6条回答
  •  轮回少年
    2021-01-11 14:32

    There is molly-guard to prevent accidental shutdows, reboots etc. until all required conditions are met -- conditions can be self-defined.

    As already suggested you can as well perform backup operations as part of the shutdown process. See for example this page.

提交回复
热议问题