exit 1
}
-enccmd=(gpg --compress-level 0 --encrypt --recipient offline)
+enccmd=(~stargrave/bin/age -R /home/stargrave/.age/general.pub)
[[ $# -ge 2 ]] || usage
dst=$3
[[ -d $dst ]] || usage
setopt PIPE_FAIL
- zfs send -Rwv $latest | zstd | $enccmd > $dst/$latest_filename.zfs.zst.gpg
+ zfs send -Rwv $latest | zstd | $enccmd > $dst/$latest_filename.zfs.zst.age
sync
touch $dst/$latest_filename.from
;;
setopt PIPE_FAIL
set -x
zfs send -Rwv -i ${latest_dst:gs#%#/} $latest | zstd | $enccmd > \
- $dst/$latest_filename.zfs.zst.gpg
+ $dst/$latest_filename.zfs.zst.age
set +x
sync
print $latest_dst > $dst/$latest_filename.from