Description of problem: It would be nice to have a backup task that backs up the database, and... config, certdb, and schema
Upstream ticket: https://github.com/389ds/389-ds-base/issues/2562
See customer case https://access.redhat.com/support/cases/#/case/03369816 Specifically - useful to export the site specific data that are not past of the standard DS installation.
I just tried restoring using ldapadd an instance from a backed up LDIF made by dsconf backend export. The ACIs are not added. This backup/restore facility should be able to create and restore an instance in a single command.
Here is the design doc for this new feature: https://www.port389.org/docs/389ds/design/expanded-backup-design.html
============================================================================================================ test session starts ============================================================================================================= platform linux -- Python 3.9.17, pytest-7.4.1, pluggy-0.13.1 -- /usr/bin/python3 cachedir: .pytest_cache metadata: {'Python': '3.9.17', 'Platform': 'Linux-5.14.0-362.1.1.el9_3.x86_64-x86_64-with-glibc2.34', 'Packages': {'pytest': '7.4.1', 'pluggy': '0.13.1'}, 'Plugins': {'metadata': '3.0.0', 'html': '4.0.0', 'libfaketime': '0.1.2', 'flaky': '3.7.0'}} 389-ds-base: 2.3.5-1.module+el9dsrv+19320+04706864 nss: 3.90.0-3.el9_2 nspr: 4.35.0-3.el9_2 openldap: 2.6.3-1.el9 cyrus-sasl: 2.1.27-21.el9 FIPS: disabled rootdir: /mnt/tests/rhds/tests/upstream/ds/dirsrvtests configfile: pytest.ini plugins: metadata-3.0.0, html-4.0.0, libfaketime-0.1.2, flaky-3.7.0 collected 1 item dirsrvtests/tests/suites/basic/basic_test.py::test_basic_backup PASSED [100%] ====================================================================================================== 1 passed, 20 warnings in 41.21s ======================================================================================================= Marking as VERIFIED.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (redhat-ds:12 bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2023:7429