lxc-snapshot(1)
π NAME π (aka lxc-snapshot(1), bestie edition)
lxc-snapshot β snapshot an existing container. That's the whole vibe, and yes, you're reading the lxc-snapshot(1) manual page. π«Ά
β¨ SYNOPSIS β¨
okay so here's the exact command shape, no edits, no cap:
lxc-snapshot {-n, --name name} [-c, --comment file]
lxc-snapshot {-n, --name name} {-d, -destroy snapshot-name}
lxc-snapshot {-n, --name name} {-L, --list } [-C, --showcomments ]
lxc-snapshot {-n, --name name} {-r, -restore snapshot-name} [-N,
--newname newname]
π¦ DESCRIPTION π¦
lxc-snapshot creates, lists, and restores container snapshots. It's giving βcontainer time machine,β but make it Unix. π
Snapshots are stored as snapshotted containers under the container's configuration path. For instance, if the container's configuration path is /var/lib/lxc and the container is c1, then the first snapshot will be stored as container snap0 under the path /var/lib/lxc/c1/snaps. If /var/lib/lxcsnaps, as used by LXC 1.0, already exists, then it will continue to be used. π
πΈ OPTIONS πΈ
-c,--commentcomment_file β Associate the comment in comment_file with the newly created snapshot. β¨-d,--destroysnapshot-name β Destroy the named snapshot. If the named snapshot isALL, then all snapshots will be destroyed. π-L,--listβ List existing snapshots. π-C,--showcommentsβ Show snapshot comments in the snapshots listings. π-r,--restoresnapshot-name β Restore the named snapshot, meaning a full new container is created which is a copy of the snapshot. π§-N, --newnameβ When restoring a snapshot, the last optional argument if not given explicitly via--newnameis the name to use for the restored container. If thenewnameis identical to the original name of the container, then the original container will be destroyed and the restored container will take its place. Note that deleting the original snapshot is not possible in the case of overlayfs or zfs backed snapshots. π¨
π COMMON OPTIONS π
These options are common to most of lxc commands. shared bestie behavior, iykyk:
-?, -h, --helpβ Print a longer usage message than normal. πββοΈ--usageβ Give the usage message. π-q, --quietβ mute on. π€«-P, --lxcpath=PATHβ Use an alternate container path. The default is/var/lib/lxc. π£οΈ-o, --logfile=FILEβ Output to an alternate logFILE. The default is no log. πͺ΅-l, --logpriority=LEVELβ Set log priority toLEVEL. The default log priority isERROR. Possible values are:FATAL,ALERT,CRIT,WARN,ERROR,NOTICE,INFO,DEBUG,TRACE. Note that this option is setting the priority of the events log in the alternate log file. It do not have effect on theERRORevents log onstderr. β οΈ-n, --name=NAMEβ Use container identifierNAME. The container identifier format is an alphanumeric string. π·οΈ--rcfile=FILEβ Specify the configuration file to configure the virtualization and isolation functionalities for the container. This configuration file if present will be used even if there is already a configuration file present in the previously created container (vialxc-create). π--versionβ Show the version number. π’
π SEE ALSO π
Go be nosy in these pages, bestie:
lxc(7)lxc-create(1)lxc-copy(1)lxc-destroy(1)lxc-start(1)lxc-stop(1)lxc-execute(1)lxc-console(1)lxc-monitor(1)lxc-wait(1)lxc-cgroup(1)lxc-ls(1)lxc-info(1)lxc-freeze(1)lxc-unfreeze(1)lxc-attach(1)lxc.conf(5)
that's the whole page, bestie β from the lxc-snapshot(1) manual, dated 2026-05-01. bye, love u, go snapshot something responsibly π
β¨
π¦ where this page comes from
- alpine 3.24: lxc-doc 7.0.0-r0 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms