From b808a74e2e7d509b3231c41784df4920468e9709 Mon Sep 17 00:00:00 2001 From: Christoph Klaffl Date: Fri, 14 Feb 2020 18:38:38 +0100 Subject: [PATCH] catch another case were the resume state isn't availabe anymore --- syncoid | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/syncoid b/syncoid index 2eef326..5e083b5 100755 --- a/syncoid +++ b/syncoid @@ -550,7 +550,10 @@ sub syncdataset { } $exit == 0 or do { - if ($stdout =~ /\Qused in the initial send no longer exists\E/) { + if ( + $stdout =~ /\Qused in the initial send no longer exists\E/ || + $stdout =~ /incremental source [0-9xa-f]+ no longer exists/ + ) { if (!$quiet) { print "WARN: resetting partially receive state because the snapshot source no longer exists\n"; } resetreceivestate($targethost,$targetfs,$targetisroot); # do an normal sync cycle