Simple, safe system snapshots for Linux.
Checkpoint creates, protects, lists, and cleans up system snapshots using Snapper or Timeshift (BTRFS and RSYNC). Use it on its own anytime before risky changes, or let advance run it automatically before and after system updates.
New to Linux snapshots? Think of a snapshot as a fast "save point" for your system. You do not need to set up profiles or config files to get started: running
checkpointautomatically detects your system's snapshot tool, backs up your OS, and keeps your newest backups tidy. Add[KEEP](--keep-snapshot/-ks) for milestones you never want auto-deleted, and use profiles only if you want one command to back up multiple places (like both your OS/and personal/homefiles). Restoring a snapshot always asks target-by-target and never silently rolls back personal files.
Install Checkpoint in one command (requires only bash, tar, and curl or wget — no git or gh needed):
curl -fsSL https://raw.githubusercontent.com/Stiggimy/checkpoint/master/bootstrap.sh | bashOther install methods (Inspect script first, Manual Git clone, Arch Linux PKGBUILD)
curl -fsSL --max-time 30 https://raw.githubusercontent.com/Stiggimy/checkpoint/master/bootstrap.sh -o checkpoint-bootstrap.sh && bash checkpoint-bootstrap.shgit clone https://github.com/Stiggimy/checkpoint.git
cd checkpoint
./install.shBuild and install system-wide (checkpoint-git, tracking master):
git clone https://github.com/Stiggimy/checkpoint.git
cd checkpoint
makepkg -siThis installs the binary to /usr/bin/checkpoint, libraries to /usr/lib/checkpoint, the catalog to /usr/share/checkpoint/catalog, and the manual to /usr/share/man/man1.
Tip: Every flag has both a readable long form and a fast short shortcut (shown in parentheses below) once you are comfortable with the commands.
# Take a quick snapshot (and clean up old ones past your limit)
checkpoint
# Take a snapshot with a custom description (short: -m)
checkpoint --comment "Before GPU driver update"
# Take a protected snapshot that auto-cleanup will never delete (short: -ks -m)
checkpoint --keep-snapshot --comment "Clean working system"
# List existing snapshots (short: -l)
checkpoint --list
# Search and delete snapshots interactively (requires fzf) (short: -d)
checkpoint --delete
# Delete snapshots matching a keyword (short: -d)
checkpoint --delete "kernel"
# Run cleanup only, keeping your last N normal snapshots + all [KEEP] ones (short: -cl)
checkpoint --cleanup-only
checkpoint --keep 10 --cleanup-only # Temporarily keep 10 normal snapshots (short: -k 10 -cl)
# Check if your snapshot backend is ready (short: -ch)
checkpoint check
# Open the interactive settings menu, backend manager, or profile manager
checkpoint config
checkpoint backend
checkpoint profile
# Preview what Checkpoint will do without touching any snapshots (short: -n)
checkpoint --dry-run
checkpoint --profile root-and-home --dry-run
checkpoint --cleanup-only --dry-run
# Create a snapshot across all targets in a profile (short: -pr, -m)
checkpoint --profile root-and-home --comment "Before system upgrade"
# Restore only your system target from a group (never touches personal data targets) (short: -rs, -tg)
checkpoint restore "Before system upgrade" --profile root-and-home --target root- 🔌 Works with Snapper & Timeshift: Automatically detects and uses the best snapshot tool on your system (
snapper,timeshift-btrfs, ortimeshift-rsync), or lets you add custom drivers (ZFS, LVM, custom scripts). - 🔒 Protected snapshots (
[KEEP]): Mark snapshots you never want to lose with-ks. Cleanup skips them permanently and does not count them against your normal snapshot limit. - 🧹 Smart rotation cleanup: Ensures you always keep your newest
Nnormal snapshots (default:6), regardless of how many[KEEP]snapshots you save. - 🗑️ Interactive deletion: Browse, preview, and delete snapshots from an interactive
fzfmenu (checkpoint -d) or match by text. - 🔁 Error recovery & freeze detection: If a snapshot command fails or freezes silently, Checkpoint alerts you and lets you
[R]etry,[E]ditthe command on the fly,[W]ait,[S]kip, or[A]bort. - 🤖 Pairs seamlessly with Advance: Coordinates paired before-and-after snapshots automatically when running
advance.
checkpoint --self-update # Update Checkpoint to the latest version (short: -U)
checkpoint self-update --repair # Repair symlinks, libraries, or manual pages (short: -r)Public installations update using only curl/wget and tar — no git or gh needed.
checkpoint uninstall # Remove Checkpoint cleanly (prompts before touching config)
checkpoint uninstall --dry-run # Preview what would be removed (short: -n)
checkpoint uninstall --keep-config # Keep ~/.config/checkpoint without prompting (short: -k)
checkpoint uninstall --purge # Also remove ~/.config/checkpoint (short: -p)
checkpoint uninstall --yes # Skip confirmation prompts (short: -y)Your existing Snapper or Timeshift snapshots are never touched during uninstallation.
(If you installed Checkpoint via your distro's package manager such as makepkg -si, update or remove it with your package manager instead, e.g. sudo pacman -R checkpoint-git.)
| Option | Description | Example |
|---|---|---|
| Actions | ||
create |
Create a system snapshot (default when invoked with no arguments) | checkpoint create |
-nc, --no-cleanup |
Create a snapshot without running rotation cleanup | checkpoint -nc |
-cl, --cleanup-only |
Run cleanup only (keeps your last N normal snapshots) |
checkpoint -cl |
-ch, --check |
Check if a snapshot backend is ready and exit | checkpoint -ch |
-l, --list |
List existing snapshots in a clean table | checkpoint -l |
-d, --delete [query] |
Interactive deletion menu (fzf) or delete by matching text |
checkpoint -d |
-rs, --restore [query] |
Restore a snapshot (explicit target selection & confirmation) | checkpoint -rs grp-123 -tg root |
-rc, --reconcile |
Audit profile manifests against live target snapshots | checkpoint -pr root-and-home -rc |
-n, --dry-run |
Preview create, --cleanup-only, -d, -rs, or -rc without modifying snapshots (single-backend or profile) |
checkpoint --dry-run / checkpoint -pr root-and-home -n |
| Modifiers | ||
-m, --comment <msg> |
Add a custom description to the snapshot | checkpoint -m "Pre-upgrade" |
-ks, --keep-snapshot |
Protect snapshot from auto-cleanup by tagging it [KEEP] |
checkpoint -ks |
-f, --force-delete |
Allow deleting [KEEP] snapshots during cleanup or deletion |
checkpoint -f -cl |
-k, --keep <N> |
Temporarily override how many normal snapshots to keep | checkpoint -k 10 |
-r, --rsync |
Use an RSYNC-based backend for this run | checkpoint -r |
-b, --btrfs |
Use a BTRFS-based backend for this run | checkpoint -b |
-sd, --snapshot-device <dev> |
Override the target backup partition or filesystem UUID | checkpoint -sd /dev/sdb1 |
-bk, --backend <name> |
Select a specific backend (snapper, timeshift-btrfs, timeshift-rsync) |
checkpoint -bk snapper |
-pr, --profile <name> |
Use a multi-target snapshot profile (or none for single-backend) |
checkpoint -pr root-and-home |
-tg, --target <id> |
Filter profile action to specific target ID (repeatable) | checkpoint -pr root-and-home -tg root |
-pm, --prune-manifests |
Remove stale manifests when running -rc, --reconcile |
checkpoint -pr root-and-home -rc -pm |
-t, --type <type> |
Snapshot phase for paired backups (single, pre, or post) |
checkpoint -t pre |
-pi, --pre-id <id> |
Link a post snapshot to its matching pre snapshot ID |
checkpoint -t post -pi 14 |
-p, --porcelain |
Machine-readable KEY="VALUE" output for scripts and Advance |
checkpoint -p |
| General | ||
-c, --changelog [ver|-L|-C|-u|-a] |
View release notes, browser, or latest (-L), current (-C), upcoming (-u), all (-a) |
checkpoint -c |
-U, --self-update, --selfupdate |
Update Checkpoint and reinstall (add -r/--repair to repair install) |
checkpoint -U |
-v, --verbose, --debug |
Enable detailed debug output | checkpoint -v |
-V, --version |
Print version and build number, then exit | checkpoint -V |
-h, --help |
Display command usage and options summary | checkpoint -h |
| Subcommands | ||
check |
Check snapshot backend readiness and exit status | checkpoint check |
changelog [ver|-L|-C|-u|-a] |
View release notes or open the interactive release browser | checkpoint changelog |
config |
Open the interactive settings menu (fzf) |
checkpoint config |
backend, backends |
Open the backend manager and guided custom driver wizard | checkpoint backend |
profile, profiles [cmd] |
Manage multi-target profiles (list, show, check, use, reconcile) |
checkpoint profile list |
restore [query] |
Restore snapshot(s) with per-target confirmation guards | checkpoint restore -tg root |
self-update, selfupdate [-r|--repair] |
Update Checkpoint and reinstall (supports -r/--repair) |
checkpoint self-update |
uninstall [-p|-k|-n|-y|-q] |
Remove per-user Checkpoint installation (--purge, --keep-config, --dry-run, --yes, --quiet) |
checkpoint uninstall |
The easiest way to configure Checkpoint is interactively via checkpoint config. Settings are saved in ~/.config/checkpoint/config:
| Setting | Purpose | Default |
|---|---|---|
SNAPSHOT_BACKEND |
Engine to use (auto, snapper, timeshift-btrfs, timeshift-rsync, or custom ID) |
auto |
SNAPSHOT_PROFILE |
Active multi-target profile ID (empty = single-backend default) | (empty) |
DEFAULT_KEEP_LIMIT |
Number of normal snapshots to keep during cleanup | 6 |
ALWAYS_KEEP |
Automatically tag every new snapshot with [KEEP] (true/false) |
false |
ALWAYS_CREATE |
Create a snapshot when checkpoint is run with no arguments (true/false) |
true |
ALWAYS_CLEANUP |
Run rotation cleanup automatically after creating a snapshot (true/false) |
true |
AUTO_RETRIES |
Automatic retries before showing the failure prompt | 1 |
STALL_TIMEOUT |
Freeze-detection timeout in seconds (0 = disabled) |
0 |
INFINITE_RETRIES |
Keep retrying failed operations automatically (true/false) |
false |
SNAPSHOT_DEVICE |
Target partition or device UUID for snapshots | (empty) |
SELF_UPDATE_CHECK |
Background update check mode (prompt, notify, auto, off) |
prompt |
USE_COLOR / USE_EMOJI |
Enable colored output and icons (true/false) |
true |
All snapshot tools are defined in declarative .conf recipes under catalog/backends/ or ~/.config/checkpoint/backends.d/*.conf. You can build, duplicate, test, or edit drivers interactively with checkpoint backend (featuring ⚡ Express Setup, 🧭 Comprehensive Walkthrough, command auto-inference, and automatic draft recovery on exit), or write a .conf file directly:
SCHEMA_VERSION=2
BACKEND_ID=zfs-root
NAME="ZFS Root Dataset"
EMOJI=📸
STORAGE_FORMAT=zfs
CAP_BOOTABLE_SUBVOL=true
CAP_PAIRED_PRE_POST=false
REQUIRES_CMD=zfs
PROBE_ACTIVE_CMD="command -v zfs >/dev/null 2>&1 && zpool status >/dev/null 2>&1"
PRIORITY=15
CREATE_CMD='sudo zfs snapshot rpool/ROOT/arch@$COMMENT'
LIST_CMD='sudo zfs list -t snapshot -o name,creation -H'
DELETE_CMD='sudo zfs destroy "$SNAPSHOT"'
LIST_PARSER='awk "{ print \$1 \" | \" \$2 }"'$COMMENT: Snapshot note, description, or automatic timestamp tag.$SNAP_TYPE: Snapshot phase for paired transactions (single,pre, orpost).$PRE_ID: Preceding pre-update snapshot ID (for linkingpostsnapshots).$SNAPSHOT: Snapshot ID passed toDELETE_CMDandRESTORE_CMD.INSTANCE_VARS: Space/comma-listed environment variables injected per profile target (e.g.,SNAPPER_CONFIGorSNAPSHOT_DEVICE).
When SNAPSHOT_PROFILE is unset (the default), Checkpoint manages a single root/system backend automatically. If you want one command to back up multiple locations — for example, both / (your operating system) and /home (your personal files) with separate Snapper configurations, or across two different snapshot tools — use a profile.
- Create or copy a profile:
- Guided interactive setup: run
checkpoint profile(orcheckpoint config→ Snapshot Profile) and select Create New Profile (choose ⚡ Express Template to clone a built-in setup in seconds or 🧭 Comprehensive Walkthrough for full customization; interrupted sessions can be saved as partial drafts and resumed later). - Or copy the built-in example to customize it:
checkpoint profile copy root-and-home my-setup "My System + Home"
- Guided interactive setup: run
- Check readiness & preview safely:
checkpoint profile check root-and-home # Verify every target is ready checkpoint --profile root-and-home --dry-run # Preview commands without changing anything (short: -pr, -n)
- Use once or make it your default:
checkpoint --profile root-and-home # Run this profile once (short: -pr) checkpoint profile use root-and-home # Make it the default for checkpoint and advance checkpoint profile use none # Switch back to standard single-backend mode
Defined in catalog/profiles/root-and-home.conf (custom profiles live in ~/.config/checkpoint/profiles.d/<name>.conf):
SCHEMA_VERSION=1
PROFILE_ID=root-and-home
NAME="Root + Home (Snapper)"
TARGETS=root,home
ON_FAILURE=stop
PRE_HOOK=
POST_HOOK=
TARGET_root_NAME="System Root"
TARGET_root_BACKEND=snapper
TARGET_root_ROLE=system
TARGET_root_PRIMARY=true
TARGET_root_ENABLED=true
TARGET_root_MOUNT="/"
TARGET_root_VARS="SNAPPER_CONFIG=root"
TARGET_root_ON_FAILURE=stop
TARGET_home_NAME="Home Subvolume"
TARGET_home_BACKEND=snapper
TARGET_home_ROLE=data
TARGET_home_PRIMARY=false
TARGET_home_ENABLED=true
TARGET_home_MOUNT="/home"
TARGET_home_VARS="SNAPPER_CONFIG=home"
TARGET_home_ON_FAILURE=continueEach target picks its own backend driver independently (snapper, timeshift-btrfs, timeshift-rsync, or any custom driver in backends.d/):
SCHEMA_VERSION=1
PROFILE_ID=mixed-backup
NAME="System Snapper + External Rsync"
TARGETS=system,external
ON_FAILURE=stop
TARGET_system_BACKEND=snapper
TARGET_system_ROLE=system
TARGET_system_PRIMARY=true
TARGET_system_MOUNT="/"
TARGET_system_VARS="SNAPPER_CONFIG=root"
TARGET_external_BACKEND=timeshift-rsync
TARGET_external_ROLE=data
TARGET_external_MOUNT="/mnt/backup"
TARGET_external_VARS="SNAPSHOT_DEVICE=/dev/sdb1"
TARGET_external_ON_FAILURE=continue- No false atomicity: Targets run one after another in
TARGETSorder. If one target succeeds and another fails, Checkpoint prints a clear partial-success summary and saves a manifest of what actually succeeded so nothing is silently lost or orphaned. - Reconcile & clean up: Run
checkpoint --profile <name> --reconcile(-rc) to compare manifests against live snapshots on disk, or add--prune-manifests(-pm) to clean up stale records whose snapshots were deleted externally. Historical single-target snapshots are preserved and continue rotating safely. - Safe restoration: Running
checkpoint restoreinteractively walks through each target one by one and warns before touchingROLE=datapersonal targets. Non-interactive restores refuse to run unless you explicitly pass--target <id>(-tg).
Complete Technical Reference (Profile Schema, Hooks, Manifests, Porcelain IPC & XDG)
| Key | Scope | Default / Values | Purpose |
|---|---|---|---|
SCHEMA_VERSION |
Profile | 1 |
Profile format version |
PROFILE_ID |
Profile | filename stem | Unique identifier |
NAME / DESCRIPTION |
Profile | PROFILE_ID / empty |
Human-readable label and description |
TARGETS |
Profile | comma-separated IDs | Ordered list of targets (letters, digits, _, -) |
ON_FAILURE |
Profile | stop | continue |
Default policy when a target fails |
PRE_HOOK / POST_HOOK |
Profile | shell command | Optional hooks run before/after the profile group |
TARGET_<id>_BACKEND |
Target | backend ID | Driver recipe in backends.d/ or catalog/backends/ |
TARGET_<id>_ROLE |
Target | system | data | custom |
Safety classification (data gets extra restore guards) |
TARGET_<id>_PRIMARY |
Target | true | false |
Primary target whose ID is exported for single-ID IPC |
TARGET_<id>_ENABLED |
Target | true | false |
Enable/disable target without removing its block |
TARGET_<id>_MOUNT |
Target | path string | Informational mount/location label |
TARGET_<id>_VARS |
Target | K=V;K2=V2 |
Scoped env vars injected only while this target runs |
TARGET_<id>_ON_FAILURE |
Target | stop | continue |
Overrides profile ON_FAILURE for this target |
TARGET_<id>_KEEP_LIMIT |
Target | integer | Optional per-target limit for unmanaged historical snapshots |
TARGET_<id>_PRE_HOOK / POST_HOOK |
Target | shell command | Hooks exported with CHECKPOINT_TARGET_* and CHECKPOINT_SNAPSHOT_ID |
Hooks run in a subshell with CHECKPOINT_PROFILE, CHECKPOINT_GROUP_ID, CHECKPOINT_HOOK_STAGE (profile-pre, target-pre, target-post, profile-post), CHECKPOINT_SNAP_TYPE, CHECKPOINT_TARGET_ID, CHECKPOINT_TARGET_MOUNT, CHECKPOINT_COMMENT, CHECKPOINT_PRE_ID, and CHECKPOINT_SNAPSHOT_ID.
- Exit codes (
create): Returns0when all enabled targets succeed, or when onlyON_FAILURE=continuetargets fail (emitting a partial-success warning). Returns1if astop-policy target fails,PRE_HOOKfails, or zero targets succeed. - Override precedence: Explicit
-pr, --profile <name>activates profile mode; explicit-bk, --backend/-r/-bwithout-prforces single-backend mode for that invocation.
Each coordinated run creates a <group_id>.manifest file recording GROUP_ID, PROFILE, TIMESTAMP, EPOCH, SNAP_TYPE, PRE_GROUP_ID, COMMENT, PROTECTED, STATUS (ok | partial | failed), PRIMARY_TARGET, PRIMARY_SNAPSHOT_ID, and per-target BACKEND, ROLE, MOUNT, VARS, STATUS, SNAPSHOT_ID, and PRE_ID. On create --type post --pre-id <ref>, Checkpoint matches <ref> against GROUP_ID, PRIMARY_SNAPSHOT_ID, or any target SNAPSHOT_ID in the pre manifest and supplies each target with its own native PRE_ID.
The built-in snapper.conf driver manages ${SNAPPER_CONFIG:-root} using --no-dbus (avoiding Config is in use daemon lock contention and background comparison delays) and ASCII table borders for locale-independent parsing. Snapshot 0 and active/default snapshots (-, +, *) are always excluded from cleanup, and descriptions containing | preserve [KEEP] protection. If you copied catalog/backends/snapper.conf into a custom recipe earlier, sync CREATE_CMD, LIST_CMD, and DELETE_CMD from the catalog to pick up these behaviors.
Passing -p, --porcelain emits strict KEY="VALUE" blocks on stdout for scripts and advance:
CHECKPOINT_STATUS="ok"
CHECKPOINT_DRIVER="snapper"
CHECKPOINT_FORMAT="btrfs"
CHECKPOINT_BOOTABLE="true"
CHECKPOINT_ID="42"
CHECKPOINT_SUBVOL_REL="/.snapshots/42/snapshot"
CHECKPOINT_FS_UUID="..."
When an error occurs, CHECKPOINT_STATUS="error" and CHECKPOINT_ERROR="..." are emitted. In multi-target profile mode, CHECKPOINT_ID reflects the primary target and CHECKPOINT_PROFILE, CHECKPOINT_GROUP_ID, CHECKPOINT_GROUP_STATUS, and CHECKPOINT_TARGETS (id:snap_id:status,...) are appended. Passing -l --porcelain prints <id> | <description> lines sorted newest-first (using the primary target when a profile is active).
| Purpose | Default location | Override |
|---|---|---|
| Configuration, backends & profiles | ~/.config/checkpoint/ |
XDG_CONFIG_HOME / CHECKPOINT_CONFIG_DIR |
| Libraries, catalog & changelog | ~/.local/share/checkpoint/ |
XDG_DATA_HOME / CHECKPOINT_DATA_DIR |
| Catalog override | $CHECKPOINT_DATA_DIR/catalog/ |
CHECKPOINT_CATALOG_DIR |
| Group manifests & wizard drafts | ~/.local/state/checkpoint/ |
XDG_STATE_HOME / CHECKPOINT_STATE_DIR |
| Self-update state & lock | ~/.cache/checkpoint/ |
XDG_CACHE_HOME / CHECKPOINT_CACHE_DIR |
Set NO_COLOR=1 to disable ANSI colors for the current session without modifying saved settings.
- Per-user public installs (
bootstrap.sh): Update by downloading themaster.tar.gzarchive over HTTPS withcurlorwgetand extracting withtar(nogitorghrequired). - Git checkouts (
.gitpresent): Pull the current branch fromoriginwith--ff-onlywithout rewriting remotes. Public HTTPS clones automatically bypass local credential helpers (-c credential.helper=); private clones use configured HTTPS credentials or non-interactive SSH (BatchMode=yes). Uncommitted tracked changes trigger an interactive auto-stash prompt in terminals (or refuse safely non-interactively). - Reliability guards: Runs are serialized with
flock, downloads/fetches default to a 30-second timeout (SELF_UPDATE_TIMEOUT=120sfor slow connections), Ctrl+C stops helper processes cleanly, and interrupted installations are retried automatically on the next run.
- Full manual:
man checkpoint - Release history & upcoming features: CHANGELOG.md or
checkpoint -c - Licensed under the GNU General Public License v3.0 (GPLv3) — see LICENSE