]> Sergey Matveev's repositories - dotfiles.git/blobdiff - bin/bin/zsnap
ips
[dotfiles.git] / bin / bin / zsnap
index c25a9893179e0b4a48b30e96cc3e51b2c52bec34..5dab4c33a8aa65bb0a32ee38c8d5396513800992 100755 (executable)
@@ -44,7 +44,7 @@ case $action in
         dst=$3
         [[ -d $dst ]] || usage
         setopt PIPE_FAIL
-        zfs send -Rv $latest | zstd | $enccmd > $dst/$latest_filename.zfs.zst.gpg
+        zfs send -Rwv $latest | zstd | $enccmd > $dst/$latest_filename.zfs.zst.gpg
         sync
         touch $dst/$latest_filename.from
         ;;
@@ -58,7 +58,7 @@ case $action in
         [[ $latest_dst != $latest_filename ]]
         setopt PIPE_FAIL
         set -x
-        zfs send -Rv -i ${latest_dst:gs#%#/} $latest | zstd | $enccmd > \
+        zfs send -Rwv -i ${latest_dst:gs#%#/} $latest | zstd | $enccmd > \
             $dst/$latest_filename.zfs.zst.gpg
         set +x
         sync