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.
This commit is contained in:
0xFate 2015-03-14 17:26:58 +01:00
parent 8f7d0169a4
commit 3f00ec8503
1 changed files with 1 additions and 1 deletions

View File

@ -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 = <FH>;