From: Arvin Schnell Date: Thu, 18 Dec 2025 09:08:01 +0000 (+0100) Subject: - target state must be valid for restore X-Git-Tag: v0.13.1~61^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1fa14beee23114445a91371200262a86054e982;p=thirdparty%2Fsnapper.git - target state must be valid for restore --- diff --git a/client/snbk/TheBigThing.cc b/client/snbk/TheBigThing.cc index b139f97a..a61ac4fd 100644 --- a/client/snbk/TheBigThing.cc +++ b/client/snbk/TheBigThing.cc @@ -183,7 +183,7 @@ namespace snapper if (!quiet) cout << sformat(_("Restoring snapshot %d."), num) << '\n'; - if (target_state == TargetState::MISSING) + if (target_state != TargetState::VALID) SN_THROW(Exception(_("Snapshot not on target."))); if (source_state != SourceState::MISSING)