Add btrfs-snapshot-compare
This commit is contained in:
parent
a3502c4f38
commit
f70d5de54d
0
.config/zsh/functions/ansi-colours
Normal file → Executable file
0
.config/zsh/functions/ansi-colours
Normal file → Executable file
11
.config/zsh/functions/btrfs-snapshot-compare
Executable file
11
.config/zsh/functions/btrfs-snapshot-compare
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env zsh
|
||||
# Compare 2 Btrfs snapshots
|
||||
|
||||
if [[ ${ARGC} -lt 2 ]]; then
|
||||
print -u 2 "Usage: ${0} <old> <new>"
|
||||
return 1
|
||||
fi
|
||||
local old="${1}"
|
||||
local new="${2}"
|
||||
|
||||
btrfs send --no-data -p "${old}" "${new}" | btrfs receive --dump
|
0
.config/zsh/functions/cat-highlight
Normal file → Executable file
0
.config/zsh/functions/cat-highlight
Normal file → Executable file
0
.config/zsh/functions/export-emacs
Normal file → Executable file
0
.config/zsh/functions/export-emacs
Normal file → Executable file
0
.config/zsh/functions/gdb_get_backtrace
Normal file → Executable file
0
.config/zsh/functions/gdb_get_backtrace
Normal file → Executable file
0
.config/zsh/functions/mksmol
Normal file → Executable file
0
.config/zsh/functions/mksmol
Normal file → Executable file
0
.config/zsh/functions/putwww
Normal file → Executable file
0
.config/zsh/functions/putwww
Normal file → Executable file
Loading…
Reference in New Issue
Block a user