Bug 2147446 - RFE - Add backup task that collects more instance items
Summary: RFE - Add backup task that collects more instance items
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Directory Server
Classification: Red Hat
Component: 389-ds-base
Version: 12.2
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: DS12.3
: dirsrv-12.3
Assignee: mreynolds
QA Contact: LDAP QA Team
Evgenia Martynyuk
URL:
Whiteboard: sync-to-jira
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-23 21:56 UTC by mreynolds
Modified: 2023-11-21 15:13 UTC (History)
9 users (show)

Fixed In Version: redhat-ds-12-9030020230711000312-1674d57
Doc Type: Enhancement
Doc Text:
.Directory Server now backs up configuration files, the certificate database, and custom schema files Previously, Directory Server backed up only databases. With this update, when you run `dsconf backup create` or `dsctl db2bak` commands, Directory Server also backs up configuration files, the certificate database, and custom schema files that are stored in the `/etc/dirsrv/slapd-__instance_name__/` directory to the backup default directory `/var/lib/dirsrv/slapd-__instance_name__/bak/config_files/`. Directory Server also backs up these files when you perform the backup by using the web console.
Clone Of:
Environment:
Last Closed: 2023-11-21 15:13:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 2562 0 None closed dsctl backup/restore should include other instance items 2023-09-26 23:37:40 UTC
Red Hat Issue Tracker IDMDS-2649 0 None None None 2022-11-23 22:01:03 UTC
Red Hat Issue Tracker IDMDS-3083 0 None None None 2023-06-01 10:17:07 UTC
Red Hat Issue Tracker IDMDS-3508 0 None None None 2023-08-07 08:08:03 UTC
Red Hat Product Errata RHEA-2023:7429 0 None None None 2023-11-21 15:13:34 UTC

Description mreynolds 2022-11-23 21:56:34 UTC
Description of problem:

It would be nice to have a backup task that backs up the database, and... config, certdb, and schema

Comment 1 mreynolds 2022-11-23 21:58:26 UTC
Upstream ticket:

https://github.com/389ds/389-ds-base/issues/2562

Comment 2 Eddy Resnick 2022-11-24 08:33:04 UTC
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.

Comment 3 Eddy Resnick 2022-12-05 12:00:57 UTC
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.

Comment 9 mreynolds 2023-08-11 14:04:53 UTC
Here is the design doc for this new feature:

https://www.port389.org/docs/389ds/design/expanded-backup-design.html

Comment 10 bsmejkal 2023-09-07 15:15:50 UTC
============================================================================================================ 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.

Comment 13 errata-xmlrpc 2023-11-21 15:13:16 UTC
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


Note You need to log in before you can comment on or make changes to this bug.