crtools(1)
==========
:doctype:       manpage
:man source:    CRtools
:man version:   0.0.1
:man manual:    CRtools Manual

NAME
----
crtools - checkpoint/restore in userspace

SYNOPSIS
--------
'crtools' <command> -t <pid>

DESCRIPTION
-----------
'crtools' is command line utility to steer checkpoint and restore procedure.

OPTIONS
-------
<command>::
    One of the follwong commands
        * 'dump'
                to initiate checkpoint procedure
        * 'restore'
                to restore previously checkpointed processes
        * 'show'
                to decode binary dump files and show their contents in human
                readable format
        * 'check'
                to test whether the kernel support is up-to-date

-c::
    In case of 'show' command the dumped pages content will be shown in hex format.
    In case of 'dump' command processes being checkpointed wont be killed once
    checkpoint complete but rather continue execution.

-D|--images-dir <path>::
    Use path 'path' as a base directory where to look for dump files set. This
    commands allpies to any <command>.

-s|--leave-stopped::
    Leave tasks in stopped state after checkpoint instead of killing them.

-f|--file <file>::
    This option is valid for 'show' command only and allows to see content of
    the <file> specified.

-x|--ext-unix-sk::
    Dump external unix sockets.

-t|--tree <pid>::
    Checkpoint the whole process tree starting from 'pid'.

-d|--restore-detached::
    Detach 'crtools' itself once restore is complete.

-n|--namespaces <ns>::
    Checkpoint namespaces. Namespaces must be separated by comma.
    Currently supported namespaces: uts, ipc, mnt, pid.

-o|--log-file <file>::
    Write logging messages to 'file'.

-v <num>::
    Set logging level to 'num'. Valid options are: 0 - (silent, error messages
    only), 1 - informative (default), 2 - debug messages.

--log-pid::
    Write separate logging files per each pid.

--close <fd>::
    Close file with descriptor 'fd' before anything else.

--tcp-established::
    Checkpoint/restore established TCP connections.

-V|--version::
    Print program version.

-h|--help::
    Print inline help.

EXAMPLES
--------

To checkpoint a program with pid '1234' and write all image files into
directory 'checkpoint' one should type

    crtools dump -D checkpoint -t 1234

To restore this program detaching crtools itself, one should type

    crtools restore -d -D checkpoint -t 1234

AUTHOR
------
OpenVZ team.

COPYING
-------
Copyright \(C) 2011-2012, Parallels Inc.
