#!/bin/bash set -x rm -rf ./dump2 mkdir ./dump2 setsid ./domain_server & sleep 1 setsid ./domain_client & PID=${!} echo ${PID} sleep 5 ./criu dump -t ${PID} -D ./dump2 -o dump.log -vvvv --shell-job --ext-unix-sk || echo "Failed to dump"