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:
Jim Salter 2020-11-01 17:19:22 -05:00 committed by GitHub
commit c21b72a376
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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