Add btrfs-snapshot-compare

This commit is contained in:
tastytea 2022-03-26 17:53:28 +01:00
parent a3502c4f38
commit f70d5de54d
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
7 changed files with 11 additions and 0 deletions

0
.config/zsh/functions/ansi-colours Normal file → Executable file
View File

View 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
View File

0
.config/zsh/functions/export-emacs Normal file → Executable file
View File

0
.config/zsh/functions/gdb_get_backtrace Normal file → Executable file
View File

0
.config/zsh/functions/mksmol Normal file → Executable file
View File

0
.config/zsh/functions/putwww Normal file → Executable file
View File