This question already has an answer here:
- How to suspend and resume processes 2 answers
I am running a huge base backup to a cloud server that will take a few days to complete. When it is running it takes most of my internet connection. It is running in a terminal, so I can manually satop it with Ctrl-Z and then restart it again.
I wonder, would it be possible to suspend and restart it automatically using cron and send some kill commands or using some other kind of process control at fixed time of the day?
The backup is being done using a python script - jotta-scanner https://github.com/havardgulldahl/jottalib
(And yes, I know that if I suspend the process it will take longer time before the backup is finished, but that is the only way to do it)