diff --git a/src/dird/ua_cmds.c b/src/dird/ua_cmds.c index 667036f83b7..c1d9e1f5c74 100644 --- a/src/dird/ua_cmds.c +++ b/src/dird/ua_cmds.c @@ -1751,6 +1751,14 @@ static bool estimate_cmd(UAContext *ua, const char *cmd) jcr->res.fileset = fileset; close_db(ua); + switch (client->Protocol) { + case APT_NATIVE: + break; + default: + ua->error_msg(_("Estimate is only supported on native clients.\n")); + return true; + } + if (job->pool->catalog) { ua->catalog = job->pool->catalog; } else {