Skip to content
Snippets Groups Projects
Commit 67f751b8 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

Merge branch 'doc_backup_update' into 'master'

update the documentation about the access rights of the backup directory etc.

See merge request !1353
parents 6cb687fd eb27e4f0
No related branches found
No related tags found
1 merge request!1353update the documentation about the access rights of the backup directory etc.
Pipeline #87008 passed
......@@ -128,7 +128,8 @@ offline. (#)
\fBzone\-flush\fP [\fIzone\fP\&...] [\fB+outdir\fP \fIdirectory\fP]
Trigger a zone journal flush to the configured zone file. If an output
directory is specified, the current zone is immediately dumped (in the
blocking mode) to a zone file in the specified directory. (#)
blocking mode) to a zone file in the specified directory. See
\fI\%Notes\fP below about the directory permissions. (#)
.TP
\fBzone\-backup\fP [\fIzone\fP\&...] \fB+backupdir\fP \fIdirectory\fP [\fIfilter\fP\&...]
Trigger a zone data and metadata backup to a specified directory.
......@@ -141,13 +142,15 @@ or omitted from the backup. By default, filters \fB+zonefile\fP, \fB+timers\fP,
\fB+kaspdb\fP, \fB+catalog\fP, and \fB+nojournal\fP are set. Setting a filter
for an item doesn\(aqt change default settings for other items. If zone flushing
is disabled, original zone file is backed up instead of writing out zone
contents to a file. (#)
contents to a file. See \fI\%Notes\fP below about the directory
permissions. (#)
.TP
\fBzone\-restore\fP [\fIzone\fP\&...] \fB+backupdir\fP \fIdirectory\fP [\fIfilter\fP\&...]
Trigger a zone data and metadata restore from a specified backup directory.
Optional filters are equivalent to the same filters of \fBzone\-backup\fP\&.
Restore from backups created by Knot DNS releases prior to 3.1 is possible
with the force option. (#)
with the force option. See \fI\%Notes\fP below about the directory
permissions. (#)
.TP
\fBzone\-sign\fP [\fIzone\fP\&...]
Trigger a DNSSEC re\-sign of the zone. Existing signatures will be dropped.
......@@ -259,7 +262,7 @@ Set the item data in the transaction.
\fBconf\-unset\fP [\fIitem\fP] [\fIdata\fP\&...]
Unset the item data in the transaction.
.UNINDENT
.SS Note
.SS Notes
.sp
Empty or \fB\-\-\fP \fIzone\fP parameter means all zones or all zones with a transaction.
.sp
......@@ -271,7 +274,7 @@ Type \fIitem\fP parameter in the form of \fIsection\fP[\fB[\fP\fIid\fP\fB]\fP][\
.sp
(#) indicates an optionally blocking operation.
.sp
The \fI\-b\fP and \fI\-f\fP options can be placed right after the command name.
The \fB\-b\fP and \fB\-f\fP options can be placed right after the command name.
.sp
Responses returned by \fIknotc\fP commands depend on the mode:
.INDENT 0.0
......@@ -285,6 +288,11 @@ The \fIOK\fP response to triggering commands means that the command has been suc
sent to the server. To verify if the operation succeeded, it\(aqs necessary to
check the server log.
.UNINDENT
.sp
Actions \fBzone\-flush\fP, \fBzone\-backup\fP, and \fBzone\-restore\fP are carried out by
the \fIknotd\fP process. The directory specified must be accessible to the user account
that \fIknotd\fP runs under and if the directory already exists, its permissions must be
appropriate for that user account.
.SS Interactive mode
.sp
The utility provides interactive mode with basic line editing functionality,
......
......@@ -105,7 +105,8 @@ Actions
**zone-flush** [*zone*...] [**+outdir** *directory*]
Trigger a zone journal flush to the configured zone file. If an output
directory is specified, the current zone is immediately dumped (in the
blocking mode) to a zone file in the specified directory. (#)
blocking mode) to a zone file in the specified directory. See
:ref:`Notes<notes>` below about the directory permissions. (#)
**zone-backup** [*zone*...] **+backupdir** *directory* [*filter*...]
Trigger a zone data and metadata backup to a specified directory.
......@@ -118,13 +119,15 @@ Actions
**+kaspdb**, **+catalog**, and **+nojournal** are set. Setting a filter
for an item doesn't change default settings for other items. If zone flushing
is disabled, original zone file is backed up instead of writing out zone
contents to a file. (#)
contents to a file. See :ref:`Notes<notes>` below about the directory
permissions. (#)
**zone-restore** [*zone*...] **+backupdir** *directory* [*filter*...]
Trigger a zone data and metadata restore from a specified backup directory.
Optional filters are equivalent to the same filters of **zone-backup**.
Restore from backups created by Knot DNS releases prior to 3.1 is possible
with the force option. (#)
with the force option. See :ref:`Notes<notes>` below about the directory
permissions. (#)
**zone-sign** [*zone*...]
Trigger a DNSSEC re-sign of the zone. Existing signatures will be dropped.
......@@ -236,8 +239,10 @@ Actions
**conf-unset** [*item*] [*data*...]
Unset the item data in the transaction.
Note
....
.. _notes:
Notes
.....
Empty or **--** *zone* parameter means all zones or all zones with a transaction.
......@@ -249,19 +254,24 @@ Type *item* parameter in the form of *section*\ [**[**\ *id*\ **]**\ ][**.**\ *n
(\#) indicates an optionally blocking operation.
The *-b* and *-f* options can be placed right after the command name.
The **-b** and **-f** options can be placed right after the command name.
Responses returned by *knotc* commands depend on the mode:
Responses returned by `knotc` commands depend on the mode:
- In the blocking mode, *knotc* reports if an error occurred during processing
- In the blocking mode, `knotc` reports if an error occurred during processing
of the command by the server. If an error is reported, a more detailed information
about the failure can usually be found in the server log.
- In the non-blocking (default) mode, *knotc* doesn't report processing errors.
The *OK* response to triggering commands means that the command has been successfully
- In the non-blocking (default) mode, `knotc` doesn't report processing errors.
The `OK` response to triggering commands means that the command has been successfully
sent to the server. To verify if the operation succeeded, it's necessary to
check the server log.
Actions **zone-flush**, **zone-backup**, and **zone-restore** are carried out by
the `knotd` process. The directory specified must be accessible to the user account
that `knotd` runs under and if the directory already exists, its permissions must be
appropriate for that user account.
Interactive mode
................
......
......@@ -956,7 +956,8 @@ their list::
$ knotc zone-backup +backupdir /path/to/backup zone1.com. zone2.com. ...
The backup directory should be empty or non-existing.
The backup directory should be empty or non-existing and it must be accessible
and writable for the :ref:`server_user` account under which knotd is running.
The backup procedure will begin soon and will happen zone-by-zone
(partially in parallel if more :ref:`server_background-workers` are configured).
**The user shall check the logs for the outcome of each zone's backup attempt.**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment