How to kill a running "restore backup" once you started the restore

1 post / 0 new
#1 Fri, 05/17/2019 - 00:09
h2ojunkie

How to kill a running "restore backup" once you started the restore

Every now and then when I'm restoring something to my sandbox (while testing things for dev), I find out after starting the restore backup from virtualmin, I end up needing to stop that restore for one reason or another (sometimes I selected an option I don't need by mistake, or whatever).

When it's a really large backup that is being restored, it could run for hours.

So what is the best way to kill the restore processes, and then remove the temp files created during the restore process (usually, I'm short on discspace and can't wait around for those temp files to drop off on their own).

So it's a 2 part question:

1) what processes do I need to kill to stop the current running backup? (is it just this one process: /usr/libexec/webmin/virtual-server/restore.cgi or are there others I may need to kill as well (such as /usr/bin/mysql -u root --password=x xxxxxxxxxxxx -t .......... (if the restore already reached the DB restore step)

2) What temp directories or lock files need to be manually removed after killing the restore processes in #1?

or is there some easier/better way I can stop a restore that has already started, and free up the disc space used by the restore temp files

Thanks!