Merge pull request #4 from 0xFate/patch-2

further pares down output when fetching snapshot list for sync - only lists datasets one step down from parent, including snapshots of parent and child datasets of parent but NOT snapshots OF child datasets of parent
This commit is contained in:
Jim Salter 2015-03-15 12:14:10 -04:00
commit a6ad424fce
1 changed files with 1 additions and 1 deletions

View File

@ -547,7 +547,7 @@ sub getsnaps() {
if ($rhost ne '') { $rhost = "$sshcmd $rhost"; } 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"; } if ($debug) { print "DEBUG: getting list of snapshots on $fs...\n"; }
open FH, $getsnapcmd; open FH, $getsnapcmd;
my @rawsnaps = <FH>; my @rawsnaps = <FH>;