Bug 56434 - No /var/univention-backup made for Samba with mdb backend
No /var/univention-backup made for Samba with mdb backend
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Samba4
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-5-errata
Assigned To: Felix Botner
Arvid Requate
:
: 55535 (view as bug list)
Depends on:
Blocks: 57297
  Show dependency treegraph
 
Reported: 2023-08-15 14:00 CEST by Arvid Requate
Modified: 2024-05-17 13:03 CEST (History)
5 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.051
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2023080921000306
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2023-08-15 14:00:10 CEST
/etc/cron.d/univention-samba4-backup uses /usr/sbin/univention-samba4-backup and that doesn't work with a Samba sam.ldb that uses mdb/lmdb as backend databases. As a result customers with large sam.ldb backend databases will have no nightly snapshots in /var/univention-backup/samba which are sometimes useful in support situations.

Systems like these can be identified e.g. like this:
===
root@ucs:~# ldbsearch -H sam.ldb -b '@PARTITION' -s base backendStore                                                           
# record 1
dn: @PARTITION
backendStore: mdb
===
Comment 2 Felix Botner univentionstaff 2023-09-19 09:51:25 CEST
Successful build
Package: univention-samba4
Version: 9.0.14-1
Branch: ucs_5.0-0
Scope: errata5.0-5
Comment 3 Arvid Requate univentionstaff 2023-09-19 11:33:24 CEST
The new version of /usr/sbin/univention-samba4-backup
now generates a lot of output, that's not good for use
in a cron job.
Comment 4 Felix Botner univentionstaff 2023-09-19 12:28:48 CEST
fixed, redirect stdout to null in cron job 

Successful build
Package: univention-samba4
Version: 9.0.14-2
Branch: ucs_5.0-0
Scope: errata5.0-5
Comment 5 Felix Botner univentionstaff 2023-09-19 12:35:49 CEST
and for the test
* removed 51_samba4/65samba4_backup.py
* don't delete files in 51_samba4/68univention-samba-backup, just test if there is a new backup archive after runnung univention-samba4-backup

Successful build
Package: ucs-test
Version: 10.0.19-7
Branch: ucs_5.0-0
Scope: errata5.0-5
Comment 6 Arvid Requate univentionstaff 2023-09-20 09:19:40 CEST
Verified:
* Functionality
* Package update
* Advisory
Comment 8 Arvid Requate univentionstaff 2024-02-15 16:41:57 CET
*** Bug 55535 has been marked as a duplicate of this bug. ***