criu
Freeze a running application or a process tree and restore it later. tldr-pages
On Linux
Linux
Check if the current kernel has support for the necessary CRIU features
sudo criu checkIdentifyCheckpoint a process with a specific ID, saving the state to a specific directory
sudo criu dump --tree process_id --images-dir path/to/directoryIdentifyRestore a process from previously saved image files
sudo criu restore --images-dir path/to/directoryIdentifyDump a process and allow it to continue running instead of terminating it
sudo criu dump --tree process_id --images-dir path/to/directory --leave-runningIdentify