Bug 53729 - Duplicate files in samba backup tar files
Duplicate files in samba backup tar files
Status: RESOLVED DUPLICATE of bug 53438
Product: UCS
Classification: Unclassified
Component: Samba4
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: Philipp Hahn
Samba maintainers
:
Depends on: 34113
Blocks:
  Show dependency treegraph
 
Reported: 2021-08-31 15:32 CEST by Arvid Requate
Modified: 2023-08-30 11:59 CEST (History)
1 user (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?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.017
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2021083121000367
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 2021-08-31 15:32:57 CEST
The samba backup files look a bit strange: At least the files in the private directory are duplicate in the archives:

tar tvf /var/univention-backup/samba/samba4_private.2021-07-16.tar.bz2
[...]
drwx------ root/root         0 2021-07-16 03:00 ./private/sam.ldb.d/
-rw------- root/root    483328 2021-07-16 03:00 ./private/sam.ldb.d/DC=DOMAINDNSZONES,DC=EXAMPLE,DC=ORG.ldb
-rw------- root/root   4247552 2021-07-13 08:10 ./private/sam.ldb.d/DC=FORESTDNSZONES,DC=EXAMPLE,DC=ORG.ldb
-rw------- root/root   4247552 2021-07-16 02:05 ./private/sam.ldb.d/DC=EXAMPLE,DC=ORG.ldb
-rw------- root/root   4247552 2021-07-16 02:57 ./private/sam.ldb.d/DC=DOMAINDNSZONES,DC=EXAMPLE,DC=ORG.ldb
-rw-r----- root/root      8192 2021-07-16 03:00 ./private/sam.ldb.d/metadata.tdb
-rw-r----- root/root    421888 2021-07-16 02:57 ./private/sam.ldb.d/metadata.tdb
-rw------- root/root   7286784 2021-07-16 03:00 ./private/sam.ldb.d/CN=SCHEMA,CN=CONFIGURATION,DC=EXAMPLE,DC=ORG.ldb
-rw------- root/root   8306688 2021-07-09 12:42 ./private/sam.ldb.d/CN=CONFIGURATION,DC=EXAMPLE,DC=ORG.ldb
-rw------- root/root   3043328 2021-07-16 03:00 ./private/sam.ldb.d/DC=FORESTDNSZONES,DC=EXAMPLE,DC=ORG.ldb
-rw------- root/root   5787648 2021-07-16 03:00 ./private/sam.ldb.d/CN=CONFIGURATION,DC=EXAMPLE,DC=ORG.ldb
-rw------- root/root   8306688 2021-07-09 12:41 ./private/sam.ldb.d/CN=SCHEMA,CN=CONFIGURATION,DC=EXAMPLE,DC=ORG.ldb
-rw------- root/root   2408448 2021-07-16 03:00 ./private/sam.ldb.d/DC=EXAMPLE,DC=ORG.ldb
Comment 1 Arvid Requate univentionstaff 2021-08-31 18:43:58 CEST
Individual instances of the files can be extracted with the tar --occurrence option
Comment 2 Philipp Hahn univentionstaff 2023-08-30 11:59:48 CEST
Already fixed by Bug #53438 released as <https://errata.software-univention.de/#/?erratum=5.0x159>

$ bash -x univention-samba4-backup
…
tar cjf /v/u-b/s/s4_p.Ymd.tar.bz2 ./private … --exclude=*.ldb --exclude=*.tdb …

`tar`-options only apply to following files, so `--exclude *.[lt]db` was too late for `private/`.

QA:
OK: tar tf /var/univention-backup/samba/samba4_private.2023-08-30.tar.bz2 | sort | uniq -d
OK: tar tf /var/univention-backup/samba/sysvol.2023-08-30.tar.bz2 | sort | uniq -d

*** This bug has been marked as a duplicate of bug 53438 ***