1lxc-checkpoint(1) lxc-checkpoint(1)
2
3
4
6 lxc-checkpoint - checkpoint a container
7
9 lxc-checkpoint {-n name} {-D PATH} [-r] [-s] [-v] [-d] [-F]
10
12 lxc-checkpoint checkpoints and restores containers.
13
15 -r, --restore
16 Restore the checkpoint for the container, instead of dumping it.
17 This option is incompatible with -s.
18
19 -D PATH, --checkpoint-dir=PATH
20 The directory to dump the checkpoint metadata.
21
22 -s, --stop
23 Optionally stop the container after dumping. This option is in‐
24 compatible with -r.
25
26 -v, --verbose
27 Enable verbose criu logging.
28
29 -d, --daemon
30 Restore the container in the background (this is the default).
31 Only available when providing -r.
32
33 -F, --foreground
34 Restore the container in the foreground. Only available when
35 providing -r.
36
38 These options are common to most of lxc commands.
39
40 -?, -h, --help
41 Print a longer usage message than normal.
42
43 --usage
44 Give the usage message
45
46 -q, --quiet
47 mute on
48
49 -P, --lxcpath=PATH
50 Use an alternate container path. The default is /var/lib/lxc.
51
52 -o, --logfile=FILE
53 Output to an alternate log FILE. The default is no log.
54
55 -l, --logpriority=LEVEL
56 Set log priority to LEVEL. The default log priority is ERROR.
57 Possible values are : FATAL, ALERT, CRIT, WARN, ERROR, NOTICE,
58 INFO, DEBUG, TRACE.
59
60 Note that this option is setting the priority of the events log
61 in the alternate log file. It do not have effect on the ERROR
62 events log on stderr.
63
64 -n, --name=NAME
65 Use container identifier NAME. The container identifier format
66 is an alphanumeric string.
67
68 --rcfile=FILE
69 Specify the configuration file to configure the virtualization
70 and isolation functionalities for the container.
71
72 This configuration file if present will be used even if there is
73 already a configuration file present in the previously created
74 container (via lxc-create).
75
76 --version
77 Show the version number.
78
80 lxc-checkpoint -n foo -D /tmp/checkpoint
81 Checkpoint the container foo into the directory /tmp/checkpoint.
82
83 lxc-checkpoint -r -n foo -D /tmp/checkpoint
84 Restore the checkpoint from the directory /tmp/checkpoint.
85
87 lxc(7), lxc-create(1), lxc-copy(1), lxc-destroy(1), lxc-start(1), lxc-
88 stop(1), lxc-execute(1), lxc-console(1), lxc-monitor(1), lxc-wait(1),
89 lxc-cgroup(1), lxc-ls(1), lxc-info(1), lxc-freeze(1), lxc-unfreeze(1),
90 lxc-attach(1), lxc.conf(5)
91
93 Tycho Andersen <tycho.andersen@canonical.com>
94
95
96
97 2021-09-18 lxc-checkpoint(1)