From 9c94510213e9d7c156a17cfce621b7f899658e92 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 24 May 2025 20:44:21 +1200 Subject: [PATCH] . --- source/src/commands/restoredata.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/src/commands/restoredata.cpp b/source/src/commands/restoredata.cpp index caf69ad..ab76b15 100644 --- a/source/src/commands/restoredata.cpp +++ b/source/src/commands/restoredata.cpp @@ -105,6 +105,16 @@ namespace dropshell return 1; } + + if (!gTemplateManager().template_command_exists(service_info.template_name, "backup") || + !gTemplateManager().template_command_exists(service_info.template_name, "restore")) + { + info << service << " has no data to restore" << std::endl; + debug << "(no backup or restore script for " << service_info.template_name << ")" << std::endl; + return 0; // nothing to back up. + } + + std::optional backup_details; if (backup_arg == "latest") { // special case.