mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-08 21:34:25 +00:00
1.5 KiB
1.5 KiB
Snapper
Table of contents
TL;DR
# List existing configurations.
snapper list-config
# List existing snapshots.
snapper list
# Create a manual standalone snapshot.
snapper create -t 'single' -d 'manual checkpoint' -c '' -u 'important=yes'
snapper \
--config 'root' \
create --read-only \
--type 'single' \
--description 'manual checkpoint' \
--userdata 'important=yes'
# Rollback to snapshot #0.
snapper rollback 0
# Delete one or more snapshots.
snapper delete 5
snapper delete --sync {7..9}
# Compare 2 snapshots.
snapper status 0..6
snapper diff 6..21
# Change values of an existing snapshot.
# the cleanup algorithm must be one of 'number', 'timeline', 'empty-pre-post' or
# '' (empty string, to cancel).
# Any description must be less than 25 characters.
# Any userdata must contain KEY=VALUE couples.
snapper modify -c '' 2
snapper modify -u 'important=yes' -d 'new description' -c '' 12
snapper modify \
--userdata 'important=yes' \
--description 'new description' \
--cleanup-algorithm '' \
12