Univention Bugzilla – Bug 53729
Duplicate files in samba backup tar files
Last modified: 2023-08-30 11:59:48 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
Individual instances of the files can be extracted with the tar --occurrence option
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 ***