]> git.ipfire.org Git - thirdparty/knot-dns.git/log
thirdparty/knot-dns.git
4 years agomod-rrl: add qname to log messages
Daniel Salzman [Fri, 6 Aug 2021 11:25:43 +0000 (13:25 +0200)] 
mod-rrl: add qname to log messages

4 years agoRevert "zscanner: set unspecified TTL in compliance with RFC-1035"
Daniel Salzman [Mon, 9 Aug 2021 06:05:03 +0000 (08:05 +0200)] 
Revert "zscanner: set unspecified TTL in compliance with RFC-1035"

This reverts commit 5849fad7148127e806097da69d6d54018c6c3b8e.

fixes #751

4 years agobugfix/dnssec: sign NSECs correctly
Libor Peltan [Thu, 5 Aug 2021 08:55:57 +0000 (10:55 +0200)] 
bugfix/dnssec: sign NSECs correctly

previously, adding RRSIG to the signed node confused
iteration over RRSets, leading to duplicit RRSIGs
of some NSEC(3)s

4 years agorpm: use autosetup macro to apply patches
Jakub Ružička [Wed, 4 Aug 2021 14:33:17 +0000 (16:33 +0200)] 
rpm: use autosetup macro to apply patches

%autosetup macro takes care of applying patches without the need
for redundant %patch lines and their management.

4 years agokeymgr: default timers for in case missing in bind format
Libor Peltan [Wed, 4 Aug 2021 12:21:25 +0000 (14:21 +0200)] 
keymgr: default timers for in case missing in bind format

4 years agotest/journal: enable 64k (and other weird) page size
Libor Peltan [Tue, 3 Aug 2021 20:07:19 +0000 (22:07 +0200)] 
test/journal: enable 64k (and other weird) page size

4 years agokdig: don't show section names when +noall option is set
Jan Hak [Wed, 4 Aug 2021 09:53:29 +0000 (11:53 +0200)] 
kdig: don't show section names when +noall option is set

fixes #749

4 years agorpm: enable XDP on ARM
Jakub Ružička [Mon, 2 Aug 2021 13:35:18 +0000 (15:35 +0200)] 
rpm: enable XDP on ARM

Also enable XDP by default and only disable on distros where not
supported. This should be a better default going forward as XDP
implementation matures.

closes !1335 !1337

4 years agoucw lists: fix overlapping structures causing a problems at arm architectures
Jan Hak [Fri, 30 Jul 2021 14:49:52 +0000 (16:49 +0200)] 
ucw lists: fix overlapping structures causing a problems at arm architectures

4 years agokxdpgun: use proper printf formatters to mute warnings on minor platforms
Daniel Salzman [Wed, 4 Aug 2021 08:55:53 +0000 (10:55 +0200)] 
kxdpgun: use proper printf formatters to mute warnings on minor platforms

4 years agopython: add long_description_content_type to setup.py
Daniel Salzman [Mon, 2 Aug 2021 07:51:54 +0000 (09:51 +0200)] 
python: add long_description_content_type to setup.py

4 years agoBump version 3.1.0 v3.1.0
Daniel Salzman [Sun, 1 Aug 2021 18:22:20 +0000 (20:22 +0200)] 
Bump version 3.1.0

4 years agoNEWS: add version 3.1.0
Daniel Salzman [Wed, 28 Jul 2021 06:26:46 +0000 (08:26 +0200)] 
NEWS: add version 3.1.0

4 years agopython: brief description of the Python API in README.md
Jan Hak [Tue, 27 Jul 2021 14:48:21 +0000 (16:48 +0200)] 
python: brief description of the Python API in README.md

4 years agoMerge branch 'test_ksk_rollovers' into 'master'
Daniel Salzman [Fri, 30 Jul 2021 14:30:44 +0000 (14:30 +0000)] 
Merge branch 'test_ksk_rollovers' into 'master'

tests: added more uncluttered KSK rollover test...

See merge request knot/knot-dns!1334

4 years agotests: added more uncluttered KSK rollover test...
Libor Peltan [Fri, 30 Jul 2021 14:11:39 +0000 (16:11 +0200)] 
tests: added more uncluttered KSK rollover test...

...also checking DS-TTL delay after submission

4 years agodoc: extend shared-ksk limitations
Daniel Salzman [Thu, 29 Jul 2021 20:14:41 +0000 (22:14 +0200)] 
doc: extend shared-ksk limitations

4 years agodoc: extend 'xdp.tcp' reference
Daniel Salzman [Thu, 29 Jul 2021 17:07:30 +0000 (19:07 +0200)] 
doc: extend 'xdp.tcp' reference

4 years agodoc: update introduction
Daniel Salzman [Wed, 28 Jul 2021 07:02:56 +0000 (09:02 +0200)] 
doc: update introduction

4 years agoMerge branch 'apkg-nix' into 'master'
Daniel Salzman [Tue, 27 Jul 2021 19:10:38 +0000 (19:10 +0000)] 
Merge branch 'apkg-nix' into 'master'

distro/nix: add

See merge request knot/knot-dns!1333

4 years agodistro: add config directory to distribution extras
Daniel Salzman [Tue, 27 Jul 2021 18:15:14 +0000 (20:15 +0200)] 
distro: add config directory to distribution extras

4 years agodistro/nix: add
Vladimír Čunát [Mon, 21 Jun 2021 15:59:28 +0000 (17:59 +0200)] 
distro/nix: add

The generated default.nix exactly corresponds to what's on
https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/dns/knot-dns/default.nix
(except for tiny differences directly due to 3.0.8 vs. 3.1.0)

4 years agoMerge branch 'fix_journal_rootzone' into 'master'
Daniel Salzman [Tue, 27 Jul 2021 14:28:10 +0000 (14:28 +0000)] 
Merge branch 'fix_journal_rootzone' into 'master'

two journal bugfixes

See merge request knot/knot-dns!1332

4 years agojournal: preserve occupation computation when purging zone while writing it
Libor Peltan [Tue, 27 Jul 2021 11:52:27 +0000 (13:52 +0200)] 
journal: preserve occupation computation when purging zone while writing it

4 years agodoc/reference: update the catalog-role description
David Vašek [Mon, 26 Jul 2021 20:25:52 +0000 (22:25 +0200)] 
doc/reference: update the catalog-role description

4 years agoMerge branch 'catz_doc_examp' into 'master'
Daniel Salzman [Tue, 27 Jul 2021 08:46:51 +0000 (08:46 +0000)] 
Merge branch 'catz_doc_examp' into 'master'

doc/catalog: examples of config

See merge request knot/knot-dns!1321

4 years agojournal: bugfix: avoid deleting zero-byte prefix...
Libor Peltan [Mon, 26 Jul 2021 18:22:01 +0000 (20:22 +0200)] 
journal: bugfix: avoid deleting zero-byte prefix...

...when deleting rootzone-related records
because it also deletes global metadata

4 years agodoc: add migration from 3.0.x to 3.1.x
Daniel Salzman [Mon, 26 Jul 2021 14:19:42 +0000 (16:19 +0200)] 
doc: add migration from 3.0.x to 3.1.x

4 years agodoc/operation: update the web link to the DER format specs, fix a critical typo
David Vašek [Mon, 19 Jul 2021 08:15:41 +0000 (10:15 +0200)] 
doc/operation: update the web link to the DER format specs, fix a critical typo

Update the web link to ITU-T X.690 Recommendation (DER key format),
the previous standard revision has been superseded. Fix a critical typo.

4 years agoNEWS: synchronize with 3.0 and 2.9 branches
Daniel Salzman [Tue, 20 Jul 2021 10:15:53 +0000 (12:15 +0200)] 
NEWS: synchronize with 3.0 and 2.9 branches

4 years agoMerge branch 'arm-xdp' into 'master'
Daniel Salzman [Fri, 23 Jul 2021 15:12:46 +0000 (15:12 +0000)] 
Merge branch 'arm-xdp' into 'master'

rpm: disable XDP on ARM

See merge request knot/knot-dns!1331

4 years agorpm: disable XDP on ARM
Jakub Ružička [Thu, 22 Jul 2021 12:17:57 +0000 (14:17 +0200)] 
rpm: disable XDP on ARM

This is a temporary solution until issues with XDP on ARM are resolved.

4 years agoconf: add adaptive lmdb readers setting based on current configuration
Daniel Salzman [Thu, 22 Jul 2021 13:28:24 +0000 (15:28 +0200)] 
conf: add adaptive lmdb readers setting based on current configuration

4 years agoconf: fix TCP processing detection, refactoring
Daniel Salzman [Mon, 19 Jul 2021 19:36:56 +0000 (21:36 +0200)] 
conf: fix TCP processing detection, refactoring

4 years agosystemd: simplify sd_notify calls
Jan Hak [Mon, 19 Jul 2021 12:06:33 +0000 (14:06 +0200)] 
systemd: simplify sd_notify calls

4 years agoserver: reduce the worker_pool_status() overhead in the case of many zones
Daniel Salzman [Mon, 19 Jul 2021 11:23:49 +0000 (13:23 +0200)] 
server: reduce the worker_pool_status() overhead in the case of many zones

4 years agoserver: fix typo in a log message
Daniel Salzman [Sun, 18 Jul 2021 19:03:56 +0000 (21:03 +0200)] 
server: fix typo in a log message

4 years agotests-extra: remove broken and unused zone_sign.sh
Daniel Salzman [Sun, 18 Jul 2021 17:02:54 +0000 (19:02 +0200)] 
tests-extra: remove broken and unused zone_sign.sh

4 years agodoc: update the web links to Feitian ePass 2003 and Trustway Proteccio NetHSM HSM's
David Vašek [Sat, 17 Jul 2021 20:37:50 +0000 (22:37 +0200)] 
doc: update the web links to Feitian ePass 2003 and Trustway Proteccio NetHSM HSM's

4 years agodoc: update the web link to Ultra Electronics CIS Keyper Plus HSM
David Vašek [Sat, 17 Jul 2021 20:00:18 +0000 (22:00 +0200)] 
doc: update the web link to Ultra Electronics CIS Keyper Plus HSM

4 years agoReplace UNUSED with _unused_
Daniel Salzman [Sat, 17 Jul 2021 17:14:31 +0000 (19:14 +0200)] 
Replace UNUSED with _unused_

4 years agoconfigure: update to autoconf 2.69/2.71
Daniel Salzman [Fri, 16 Jul 2021 16:23:58 +0000 (18:23 +0200)] 
configure: update to autoconf 2.69/2.71

4 years agoxdp: remove KNOT_XDP_LISTEN_PORT_MASK from enum to mute pedantic warning
Daniel Salzman [Thu, 15 Jul 2021 18:23:18 +0000 (20:23 +0200)] 
xdp: remove KNOT_XDP_LISTEN_PORT_MASK from enum to mute pedantic warning

4 years agomod-geoip: add explicit DNSSEC configuration
Daniel Salzman [Wed, 30 Jun 2021 13:22:57 +0000 (15:22 +0200)] 
mod-geoip: add explicit DNSSEC configuration

4 years agoMerge branch 'xdp_mss' into 'master'
Daniel Salzman [Thu, 15 Jul 2021 13:46:32 +0000 (13:46 +0000)] 
Merge branch 'xdp_mss' into 'master'

xdp: use same MSS like without xdp

See merge request knot/knot-dns!1330

4 years agoxdp: use same MSS like without xdp
Libor Peltan [Thu, 15 Jul 2021 13:38:04 +0000 (15:38 +0200)] 
xdp: use same MSS like without xdp

4 years agoMerge branch 'restricted_mss' into 'master'
Libor Peltan [Thu, 15 Jul 2021 13:17:14 +0000 (13:17 +0000)] 
Merge branch 'restricted_mss' into 'master'

Restrict Ethernet TCP MSS to 1220 octects on Linux

Closes #468

See merge request knot/knot-dns!1328

4 years agoMerge branch 'fix_sharedksk_damaged' into 'master'
Daniel Salzman [Thu, 15 Jul 2021 10:46:03 +0000 (10:46 +0000)] 
Merge branch 'fix_sharedksk_damaged' into 'master'

Fix sharedksk damaged

See merge request knot/knot-dns!1329

4 years agodoc/sharedKSK: discourage changing policy ID
Libor Peltan [Thu, 15 Jul 2021 10:31:59 +0000 (12:31 +0200)] 
doc/sharedKSK: discourage changing policy ID

4 years agodnssec/sharedKSK: fix creating new KSK if policylast is dangling
Libor Peltan [Thu, 15 Jul 2021 10:27:17 +0000 (12:27 +0200)] 
dnssec/sharedKSK: fix creating new KSK if policylast is dangling

4 years agodistro/rpm: add 'V=1' to 'make check' to print failed tests result
Daniel Salzman [Tue, 13 Jul 2021 17:03:06 +0000 (19:03 +0200)] 
distro/rpm: add 'V=1' to 'make check' to print failed tests result

4 years agonet: restrict Ethernet TCP MSS to 1220 octects on Linux
Jan Hak [Fri, 19 Mar 2021 12:47:22 +0000 (13:47 +0100)] 
net: restrict Ethernet TCP MSS to 1220 octects on Linux

It doesn't work on BSDs. Maybe because of the socket is not yet connected.

4 years agoconfigure: fix AC_SEARCH_LIBS usage if the result is cached with value 'none required'
Daniel Salzman [Wed, 14 Jul 2021 12:29:13 +0000 (14:29 +0200)] 
configure: fix AC_SEARCH_LIBS usage if the result is cached with value 'none required'

4 years agodistro/deb: drop also 'knot_tcp_*' symbols if XDP not available
Daniel Salzman [Wed, 14 Jul 2021 12:50:57 +0000 (14:50 +0200)] 
distro/deb: drop also 'knot_tcp_*' symbols if XDP not available

4 years agotests-extra: fix notify/timers instability by disabling notify
Daniel Salzman [Wed, 14 Jul 2021 08:45:41 +0000 (10:45 +0200)] 
tests-extra: fix notify/timers instability by disabling notify

4 years agoMerge branch 'catalog_gen_groups' into 'master'
Daniel Salzman [Wed, 14 Jul 2021 10:57:04 +0000 (10:57 +0000)] 
Merge branch 'catalog_gen_groups' into 'master'

Catalog generation with groups

See merge request knot/knot-dns!1324

4 years agotests-extra/server: unify variable names
Daniel Salzman [Wed, 14 Jul 2021 10:44:12 +0000 (12:44 +0200)] 
tests-extra/server: unify variable names

4 years agobugfix: don't leak when zone dump fails
Libor Peltan [Thu, 8 Jul 2021 11:16:55 +0000 (13:16 +0200)] 
bugfix: don't leak when zone dump fails

4 years agocatalog: implemented generating with conf groups
Libor Peltan [Fri, 2 Jul 2021 17:02:22 +0000 (19:02 +0200)] 
catalog: implemented generating with conf groups

4 years agoMerge branch 'xdp_tcp_mem' into 'master'
Daniel Salzman [Tue, 13 Jul 2021 11:39:59 +0000 (11:39 +0000)] 
Merge branch 'xdp_tcp_mem' into 'master'

XDP-TCP: dont use structures if their allocation fails

See merge request knot/knot-dns!1327

4 years agoXDP-TCP: dont use structures if their allocation fails
Libor Peltan [Tue, 13 Jul 2021 11:34:12 +0000 (13:34 +0200)] 
XDP-TCP: dont use structures if their allocation fails

4 years agokxdpgun: increase string buffer sizes to avoid theoretical overflow
Daniel Salzman [Tue, 13 Jul 2021 11:14:49 +0000 (13:14 +0200)] 
kxdpgun: increase string buffer sizes to avoid theoretical overflow

4 years agotests/digets: mute unused variable warning if NDEBUG
Daniel Salzman [Tue, 13 Jul 2021 11:03:33 +0000 (13:03 +0200)] 
tests/digets: mute unused variable warning if NDEBUG

4 years agoMerge branch 'fix_subm_ttl_override' into 'master'
Daniel Salzman [Tue, 13 Jul 2021 09:29:39 +0000 (09:29 +0000)] 
Merge branch 'fix_subm_ttl_override' into 'master'

dnssec: bugfix: dont retire key too soon after submission...

See merge request knot/knot-dns!1326

4 years agodnssec: bugfix: dont retire key too soon after submission...
Libor Peltan [Tue, 13 Jul 2021 08:39:21 +0000 (10:39 +0200)] 
dnssec: bugfix: dont retire key too soon after submission...

KSK remove is planned upon submission based on DS TTL
this overrided the planned remove with retire

4 years agoIncrease libzscanner and libknot SOVERSION
Daniel Salzman [Tue, 13 Jul 2021 07:30:30 +0000 (09:30 +0200)] 
Increase libzscanner and libknot SOVERSION

4 years agoctl: in txn related commands, don't treat "no active transaction" as errors in all...
David Vašek [Mon, 12 Jul 2021 13:08:09 +0000 (15:08 +0200)] 
ctl: in txn related commands, don't treat "no active transaction" as errors in all-zone operations

4 years agodoc/knotc: fix a typesetting issue
David Vašek [Mon, 12 Jul 2021 13:04:46 +0000 (15:04 +0200)] 
doc/knotc: fix a typesetting issue

4 years agoMerge branch 'zone_backup_improvements' into 'master'
Daniel Salzman [Mon, 12 Jul 2021 19:02:48 +0000 (19:02 +0000)] 
Merge branch 'zone_backup_improvements' into 'master'

backup improvements -- modified backup format (BACKUP_FORMAT_2), label file, improved backup locking, etc.

See merge request knot/knot-dns!1325

4 years agotest/backup: check error codes in knot logfiles
Libor Peltan [Mon, 12 Jul 2021 13:07:01 +0000 (15:07 +0200)] 
test/backup: check error codes in knot logfiles

4 years agobackup: return KNOT_ENOTSUP when trying to restore from possible future backup format...
David Vašek [Sat, 10 Jul 2021 05:25:11 +0000 (07:25 +0200)] 
backup: return KNOT_ENOTSUP when trying to restore from possible future backup format version

Returning KNOT_ENOTSUP makes more sense than returning KNOT_EMALF in such situations.

4 years agobackup: use data item identifier "server_identity" in the label file
David Vašek [Fri, 9 Jul 2021 15:16:18 +0000 (17:16 +0200)] 
backup: use data item identifier "server_identity" in the label file

4 years agotests-extra: zone/backup_multi -- remove the test
David Vašek [Wed, 7 Jul 2021 18:26:18 +0000 (20:26 +0200)] 
tests-extra: zone/backup_multi -- remove the test

The test no longer works, as concurrent backups aren't possible in
Knot any more.

4 years agotests-extra: zone/backup -- make the test more stable in case of repeated server...
David Vašek [Fri, 18 Jun 2021 12:26:59 +0000 (14:26 +0200)] 
tests-extra: zone/backup -- make the test more stable in case of repeated server starts

In case of repated server starts (enforced by occupied IP ports), an AXFR may happen
before the testing actually starts. Lower refresh value allows another AXFR of already
expired zone before the test time outs.

4 years agotests/backup: test (im)possibility of backup/restore in situations
David Vašek [Wed, 7 Jul 2021 21:04:07 +0000 (23:04 +0200)] 
tests/backup: test (im)possibility of backup/restore in situations

4 years agozone-backup: make zonefile backup a separate function
David Vašek [Thu, 1 Jul 2021 06:22:51 +0000 (08:22 +0200)] 
zone-backup: make zonefile backup a separate function

4 years agobackup: rename backup_label.{c,h} to more apt backup_dir.{c,h}
David Vašek [Wed, 30 Jun 2021 18:46:54 +0000 (20:46 +0200)] 
backup: rename backup_label.{c,h} to more apt backup_dir.{c,h}

4 years agobackup: make the backup directory creation/verification part of the backup labelling...
David Vašek [Wed, 30 Jun 2021 16:13:34 +0000 (18:13 +0200)] 
backup: make the backup directory creation/verification part of the backup labelling code

4 years agobackup: move the lock file and label file related code to independent module
David Vašek [Tue, 29 Jun 2021 16:34:44 +0000 (18:34 +0200)] 
backup: move the lock file and label file related code to independent module

Some changes to the function interfaces.

4 years agobackup: print the full network identity in the label file
David Vašek [Fri, 18 Jun 2021 18:11:52 +0000 (20:11 +0200)] 
backup: print the full network identity in the label file

4 years agobackup: modify format of the label file, its name and the name of the lock file
David Vašek [Tue, 15 Jun 2021 09:35:58 +0000 (11:35 +0200)] 
backup: modify format of the label file, its name and the name of the lock file

4 years agodoc/operation: online backup in the blocking mode -- improvement
David Vašek [Fri, 11 Jun 2021 16:52:23 +0000 (18:52 +0200)] 
doc/operation: online backup in the blocking mode -- improvement

4 years agoctl/backup: a proper error logging/reporting in global catalog zone backup
David Vašek [Thu, 10 Jun 2021 18:16:52 +0000 (20:16 +0200)] 
ctl/backup: a proper error logging/reporting in global catalog zone backup

4 years agoctl/backup: when the zone is busy, report the error in a standard way (and to knotc...
David Vašek [Fri, 12 Feb 2021 12:07:32 +0000 (13:07 +0100)] 
ctl/backup: when the zone is busy, report the error in a standard way (and to knotc too)

Also, make the warning message more correct.

4 years agobackup: when a backup becomes faulty, don't continue with it
David Vašek [Mon, 7 Jun 2021 19:07:47 +0000 (21:07 +0200)] 
backup: when a backup becomes faulty, don't continue with it

4 years agobackup: zone-restore doesn't need a lock file
David Vašek [Mon, 7 Jun 2021 13:41:52 +0000 (15:41 +0200)] 
backup: zone-restore doesn't need a lock file

4 years agobackup: display zone count in the label file
David Vašek [Sun, 6 Jun 2021 12:57:35 +0000 (14:57 +0200)] 
backup: display zone count in the label file

It's enough to count planned backup events. Counting finished zones isn't necessary.

4 years agolibknot/error: a more universal error string -- "parameter conflict"
David Vašek [Sun, 6 Jun 2021 08:23:14 +0000 (10:23 +0200)] 
libknot/error: a more universal error string -- "parameter conflict"

The new string can be used in other situations better in the future.
The original string hasn't appeared in a release yet.

4 years agobackup: a more correct check for backup_dir existence in zone-restore
David Vašek [Sun, 6 Jun 2021 08:16:32 +0000 (10:16 +0200)] 
backup: a more correct check for backup_dir existence in zone-restore

It's a little bit more code and one additional stat() call, but it's more resilient to
future changes in the code. From user's point of view the functionality is the same.

4 years agolibknot/error: add a new error code -- KNOT_ENOTDIR
David Vašek [Sun, 6 Jun 2021 09:22:05 +0000 (11:22 +0200)] 
libknot/error: add a new error code -- KNOT_ENOTDIR

It fixes error reporting from syscalls and functions such as make_dir().

4 years agocontrib/files: return KNOT_EEXIST from make_dir()
David Vašek [Mon, 7 Jun 2021 08:02:34 +0000 (10:02 +0200)] 
contrib/files: return KNOT_EEXIST from make_dir()

Return KNOT_EEXIST from make_dir() when the target already exists, but it isn't a directory.
The previous error code could be misleading and it hadn't been defined in the first place.

4 years agobackup: updated backup format (BACKUP_FORMAT_2)
David Vašek [Fri, 4 Jun 2021 19:43:56 +0000 (21:43 +0200)] 
backup: updated backup format (BACKUP_FORMAT_2)

Functional changes:

1. Zone files are stored in a dedicated directory.
2. Zone files use the zones' default file names in the backup,
   not the file names defined in the configuration as before. This
   change eleminates file name conflicts which were possible with the
   original backup design.

4 years agobackup: get the backup format version to be used by restore
David Vašek [Fri, 4 Jun 2021 19:43:18 +0000 (21:43 +0200)] 
backup: get the backup format version to be used by restore

Iff there isn't a label file and the force flag is set, use the original backup
format for restore.

Otherwise report a backup without a label file as malformed.

If there is an empty label file, the label file doesn't start with a label file
header, the label file doesn't include a backup format description, or the backup
format code isn't known, consider it a malformed backup and don't restore from it,
even if the force flag has been set.

4 years agobackup: add backup format versioning
David Vašek [Tue, 1 Jun 2021 14:23:05 +0000 (16:23 +0200)] 
backup: add backup format versioning

4 years agozone backup: source code style improvement
David Vašek [Wed, 2 Jun 2021 14:15:44 +0000 (16:15 +0200)] 
zone backup: source code style improvement

Sort the #include statements alphabetically and remove a duplicity.
Break up a too long macro line.

4 years agobackup: make the recent code a little more compact
David Vašek [Wed, 19 May 2021 14:25:02 +0000 (16:25 +0200)] 
backup: make the recent code a little more compact

4 years agobackup: label successful backups only, keep the lock file in failed ones
David Vašek [Wed, 19 May 2021 14:14:59 +0000 (16:14 +0200)] 
backup: label successful backups only, keep the lock file in failed ones

The label file is a warrant that the backup has benn successfully completed
and can be safely used for a restore.

4 years agobackup: if the backup label can't be created, propagate the error up and to the client
David Vašek [Wed, 19 May 2021 13:00:55 +0000 (15:00 +0200)] 
backup: if the backup label can't be created, propagate the error up and to the client

4 years agobackup: add an "-f" parameter for zone-restore
David Vašek [Mon, 10 May 2021 21:04:21 +0000 (23:04 +0200)] 
backup: add an "-f" parameter for zone-restore

The "-f" parameter for zone-restore allows restore from older backups
which have been created without a backup label file.

4 years agobackup: create a backup label and check for its existence
David Vašek [Fri, 30 Apr 2021 17:33:17 +0000 (19:33 +0200)] 
backup: create a backup label and check for its existence

The label file identifies the backup an prevents another backup to be made
to an already existing backup. Existence of a label file is necessary for a restore,
which helps to prevent a frequent user error and to avoid a number of failures
which would be triggered by it.

In addition to that, every label file contains a brief description
of the backup and its parameters. A list of zones that the backup contains
isn't included so far.