feat(snapper): Add manual snap script
Can be run before dangerous commands to create a quick backup of the system before running it.
This commit is contained in:
parent
e112bb3078
commit
8301bfb522
2 changed files with 15 additions and 0 deletions
7
books/files/snapper-snap-script
Executable file
7
books/files/snapper-snap-script
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
CONFIG="${SNAP_CONFIG:-root}"
|
||||
|
||||
echo RUNNING: snapper --config="$CONFIG" --quiet create --description="${*//sudo /}" --cleanup-algorithm="number"
|
||||
|
||||
"$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue