tldr/pages/linux/snapper.md

29 lines
583 B
Markdown
Raw Permalink Normal View History

2018-07-06 14:45:37 +01:00
# snapper
2018-07-06 14:53:43 +01:00
> Filesystem snapshot management tool.
2019-07-23 04:39:39 +01:00
> More information: <http://snapper.io/manpages/snapper.html>.
2018-07-06 14:45:37 +01:00
- List snapshot configs:
`snapper list-configs`
- Create snapper config:
`snapper -c {{config}} create-config {{path/to/directory}}`
2018-07-06 14:45:37 +01:00
2019-07-23 04:39:39 +01:00
- Create a snapshot with a description:
2018-07-06 14:45:37 +01:00
`snapper -c {{config}} create -d "{{snapshot_description}}"`
2018-07-06 14:45:37 +01:00
2019-07-23 04:39:39 +01:00
- List snapshots for a config:
2018-07-06 14:45:37 +01:00
2019-07-23 04:39:39 +01:00
`snapper -c {{config}} list`
2018-07-06 14:45:37 +01:00
- Delete a snapshot:
`snapper -c {{config}} delete {{snapshot_number}}`
2018-07-07 18:10:08 +01:00
- Delete a range of snapshots:
2018-07-06 14:45:37 +01:00
2018-07-07 18:10:08 +01:00
`snapper -c {{config}} delete {{snapshot_X}}-{{snapshot_Y}}`