12 lines
234 B
Bash
Executable File
12 lines
234 B
Bash
Executable File
#!/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
|