12 lines
234 B
Plaintext
12 lines
234 B
Plaintext
|
#!/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
|