Merge pull request #510 from phreaker0/reset-resume-2
catch another case in which the resume state isn't availabe anymore
This commit is contained in:
commit
c21b72a376
5
syncoid
5
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
|
||||
|
|
Loading…
Reference in New Issue