[CRIU] post-dump / pre-restore scripts

Eliot Moss moss at cs.umass.edu
Fri Oct 11 16:24:17 MSK 2019


Dear CRIU-ers --

I am interested in periodically taking a snapshot of a collection of
running processes that use pipes and FIFOs to communicate with each
other, and that are creating large traces files as output.  My goal
is to be able to restart after a system failure or shutdown.

 From my reading of the documentation, I will need to record current
position in the output trace files using a post-dump action script,
and truncate the files back to those positions in a corresponding
pre-restore script.

It would be very helpful to see an example of such a script.  The
documentation is (ahem) a bit minimal on how to accomplish this
presumably straightforward intent.  Can someone help me out on this?

Regards - Eliot Moss
Professor, Information and Computer Sciences
Univ of Massachusetts Amherst


More information about the CRIU mailing list