1
0
Fork 0
zfs-test/bin/copy-snapshot/zfs-diff-move-then-rsync

6 lines
360 B
Bash
Executable File

#!/bin/sh
echo zfs-diff-move /tank/target /tank/test "tank/test@$2" "@$1"
./zfs-diff-move /tank/target /tank/test "tank/test@$2" "@$1"
echo rsync -avhx -@-1 --delete --inplace --no-whole-file --progress "/tank/test/.zfs/snapshot/$1/" "/tank/target/"
rsync -avhx -@-1 --delete --inplace --no-whole-file --progress "/tank/test/.zfs/snapshot/$1/" "/tank/target/"