1
0
zfs-test/bin/copy-snapshot/zfs-diff-move-then-rsync
2024-01-28 09:53:36 -08:00

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/"