This commit is contained in:
parent
bcc78859fc
commit
9c94510213
@ -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<shared_commands::cBackupFileName> backup_details;
|
||||
if (backup_arg == "latest")
|
||||
{ // special case.
|
||||
|
Loading…
x
Reference in New Issue
Block a user