From 3f00ec8503b3ea39e68198734bee3d9555ddce0b Mon Sep 17 00:00:00 2001 From: 0xFate <0xfate@gmail.com> Date: Sat, 14 Mar 2015 17:26:58 +0100 Subject: [PATCH] didnt grab the right one 1st time this one reduces depth of the get command to 1 so zfs get wont pull subsequent dataset snapshots. --- syncoid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncoid b/syncoid index b83003c..5dc35f2 100755 --- a/syncoid +++ b/syncoid @@ -547,7 +547,7 @@ sub getsnaps() { if ($rhost ne '') { $rhost = "$sshcmd $rhost"; } - my $getsnapcmd = "$rhost $zfscmd get -Hpr creation $fs |"; + my $getsnapcmd = "$rhost $zfscmd get -Hpd 1 creation $fs |"; if ($debug) { print "DEBUG: getting list of snapshots on $fs...\n"; } open FH, $getsnapcmd; my @rawsnaps = ;