13 lines
272 B
Bash
Executable File
13 lines
272 B
Bash
Executable File
#!/usr/bin/env zsh
|
|
# Compare 2 Btrfs snapshots
|
|
|
|
setopt LOCAL_OPTIONS ERR_RETURN NO_UNSET PIPE_FAIL
|
|
|
|
autoload -U die
|
|
|
|
[[ ${ARGC} -ne 2 ]] && die 1 "Usage: ${0} <old> <new>"
|
|
local old="${1}"
|
|
local new="${2}"
|
|
|
|
btrfs send --no-data -p "${old}" "${new}" | btrfs receive --dump
|