[CRIU] post-dump / pre-restore scripts

Radostin Stoyanov rstoyanov1 at gmail.com
Fri Oct 11 21:53:24 MSK 2019


On 11/10/2019 19:49, Radostin Stoyanov wrote:
> On 11/10/2019 14:24, Eliot Moss wrote:
>> 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?
>>
>
> A simple example of such script is
>
> https://github.com/checkpoint-restore/criu/blob/criu-dev/scripts/fake-restore.sh 
>
>
or perhaps a better example:

https://github.com/checkpoint-restore/criu/blob/criu-dev/scripts/tmp-files.sh

>> Regards - Eliot Moss
>> Professor, Information and Computer Sciences
>> Univ of Massachusetts Amherst
>> _______________________________________________
>> CRIU mailing list
>> CRIU at openvz.org
>> https://lists.openvz.org/mailman/listinfo/criu
>



More information about the CRIU mailing list