mirror of https://github.com/jimsalterjrs/sanoid
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:
parent
8f7d0169a4
commit
3f00ec8503
2
syncoid
2
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 = <FH>;
|
||||
|
|
|
|||
Loading…
Reference in New Issue