---
name: "mkcp"
section: "8"
platform: "linux"
package: "nilfs-utils"
version: "2.3.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/mkcp"
---

# mkcp(8)

make a NILFS2 checkpoint

## NAME

mkcp - make a NILFS2 checkpoint

## SYNOPSIS

**mkcp** \[*options*\] \[*device*\|*node*\]

## DESCRIPTION

**mkcp** is a utility for making a checkpoint or snapshot for the NILFS2 file system found in *device*. *device* may be a block device or a filesystem node (file or directory) on the filesystem. When *device* is omitted, it tries to find a NILFS2 file system from */proc/mounts*.

This command is valid only for mounted NILFS2 file systems, and will fail if the *device* has no active mounts.

## OPTIONS

- **-s**, **--snapshot**

  Create a snapshot.

- **-p**, **--print**

  Print the checkpoint number when successfully created.

- **-h**, **--help**

  Display help message and exit.

- **-V**, **--version**

  Display version and exit.

## AUTHOR

Koji Sato

## AVAILABILITY

**mkcp** is part of the nilfs-utils package and is available from https://nilfs.sourceforge.io.

## SEE ALSO

[**nilfs**(8)](/nilfs/8.md), [**lscp**(1)](/lscp/1.md), [**chcp**(8)](/chcp/8.md), [**rmcp**(8)](/rmcp/8.md), [**nilfs-tune**(8)](/nilfs-tune/8.md).
