Open totalAldo opened 5 months ago
Would be great if you could add -w (raw send) to your implementation as well
@GernotS I've implemented the -w option in my fork. If you have a chance, please test, and let me know if you encounter any issues.
https://github.com/totalAldo/zxfer/commit/cf589ff25af8be1d9b98b72382c601dacede6d72
Wow, that was quick, thank you! Your implemantation is surely my favorite now, way faster than the original.
as your zxfer repo is missing the issues tab I need to write this here. You latest commit uses grep -m which is not supported on Illumos.
thx
Hi @GernotS ! Apologies. I have enabled Issues and removed the use of "-m". Would love your feedback if you've enabled the new "-j" option as I've found that to further speed up performance significantly.
thanks, filed two issues already
Hi Allan,
When listing the snapshots on some of my pools, it can take over 15 seconds for each command to finish. One way to reduce the execution time of
get_zfs_list()
is by running the source and destinationzfs list -t snap
commands in the background, write the results to temporary files, proceed with other list command and wait for the commands to finish.Here is an implementation of that logic which has reduced
get_zfs_list()
execution time by nearly 50%https://github.com/totalAldo/zxfer/blob/9a7b4e1da5305952863ddbe518403b8c8c18521b/zxfer#L1791-L1919