From 58362924dea1e3dc0dd0111c1f7722f196ec6cd1 Mon Sep 17 00:00:00 2001 From: 0xFate <0xfate@gmail.com> Date: Sun, 8 Mar 2015 05:03:58 +0100 Subject: [PATCH] Speed-up Sync process This is a simple change which speeds up Sync process on systems with a high amount of Snapshots. It gets only Snapshots desired for the targeted FS and reduces output and thus Parsing time of the get command in the first place, and schould greatly reduce later processes (sorting arrays, mathing snaps) due to the reduced overhead. --- syncoid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncoid b/syncoid index 190a77d..b83003c 100755 --- a/syncoid +++ b/syncoid @@ -547,7 +547,7 @@ sub getsnaps() { if ($rhost ne '') { $rhost = "$sshcmd $rhost"; } - my $getsnapcmd = "$rhost $zfscmd get -Hp creation |"; + my $getsnapcmd = "$rhost $zfscmd get -Hpr creation $fs |"; if ($debug) { print "DEBUG: getting list of snapshots on $fs...\n"; } open FH, $getsnapcmd; my @rawsnaps = ;