I want to run a backup script 10 minutes after booting up my machine but only once a day. Is it possible to build up such scenarios with systemd?
|
|
See:
This runs the corresponding Also, if your backups are going to be heavy on IO, it might be helpful to read about the IOScheduling* directives in the systemd.exec(5) manpage. |
||||
|
|
|
I don't think it's possible to do this entirely in systemd as it does not track any state between reboots. You can easly schedule something to run 10 minutes after boot using The script itself has to check if it was already run today or not. This can be easily implemented even in bash, for example:
|
|||
|
|