That's because in normal (that is non-blocking) mode knotc just
schedules operations in the server and reports whether the scheduling
was successful or not. You can start putting other operations in the
queue just after the command prompt returns. On the other hand, if you
want to wait until the operation finishes and immediately see a brief
result of it (or get an exit status reflecting the actual operation),
you must use the blocking mode (knotc -b zone-backup ...). See the last
paragraphs in the Note section here:
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Friday, August 13th, 2021 at 12:37 PM, David Vasek
<david.vasek(a)nic.cz> wrote:
Hi Laura,
the ownership of the backup directory, its permissions and the user
(and
group) under which knotd is running are important here.
Regards,
David
Thanks David, that worked.
As an aside, I have noticed that the CLI exits 0 with "OK" even though
the backup is still running (and so I have found problems calling tar
immediately because "file being changed")