TDBBACKUP(8)
πΎ TDBBACKUP β the tdbbackup era πΎ
okay so bestie, welcome to TDBBACKUP(8), a system administration tool that lives in section 8 of your manual, and honestly? she's the friend who shows up with a backup drive AND a vibe check. her whole job is backing up and validating the integrity of samba .tdb files. no cap. π«Ά
β¨ SYNOPSIS β¨
tdbbackup [-s suffix] [-v] [-h] [-n hashsize] [-l]
that's the whole fit. five little flags. iconic. π
πΈ DESCRIPTION πΈ
so first things first: this tool is part of the samba(1) suite. she runs with a whole squad, iykyk.
tdbbackup is a tool you can use to back up samba .tdb files. but the way that she's also out here doing double duty? obsessed. you can also use her to verify the integrity of your .tdb files β either before samba startup, or literally during normal operation, no big deal.
and here's the part that actually matters: if she finds file damage, and she finds a prior backup, then the backup file will be restored. yes, for real. she will just fix it. main character energy fr fr. π
π OPTIONS π
-hβ get help information. the "bestie i'm lost" flag. go off. π-ssuffix β this one lets the administrator specify a file backup extension. why would you want that? because this way it's possible to keep a whole history of tdb backup files, just by using a new suffix for each backup. cute little time capsule, one suffix at a time. π-vβ this will check the database for damages (aka corrupt data), and if any is detected, that causes the backup to be restored. she's not just glancing, she's inspecting. π-nhashsize β sets the hash size for the new backup tdb. tiny knob, big consequences. β-lβ this option disables any locking, by passingTDB_NOLOCKtotdb_open_ex().
β οΈ bestie, listen to me. only use this for database files which are not used by any other process! and also only if it is otherwise not possible to open the database β e.g. databases which were created with mutex locking. this is a "break glass in case of emergency" flag, not an everyday accessory. π
π COMMANDS π
π GENERAL INFORMATION π
the tdbbackup utility can safely be run at any time. like, any time. she was designed so that she can be used at any time to validate the integrity of tdb files β even during Samba operation. no downtime, no drama, no "wait until nobody's looking". she's built different. β¨
typical usage for the command will be:
tdbbackup [-s suffix] *.tdb
and before restarting samba, the following command may be run to validate .tdb files:
tdbbackup -v [-s suffix] *.tdb
samba .tdb files are stored in various locations, so be sure to run backup all .tdb file on the system. do not skip this. do not "do it later". do it. π§
important files include:
secrets.tdbβ usual location is in the/usr/local/samba/privatedirectory, or on some systems in/etc/samba.passdb.tdbβ usual location is in the/usr/local/samba/privatedirectory, or on some systems in/etc/samba.*.tdblocated in the/usr/local/samba/vardirectory or on some systems in the/var/cacheor/var/lib/sambadirectories.
π VERSION π
this man page is correct for version 3 of the Samba suite. periodt. πΈ
π AUTHOR π
the original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed. collaborative queen behaviour honestly. π«Ά
the tdbbackup man page was written by John H Terpstra. thank you for your service. π
and that's the whole page, bestie!! this one's from Samba 3.6, dated 2015-04-25 β so yeah, she's been holding it down since way back, and she's still serving. now go back up your .tdb files before something happens. i love you. mwah. ππ¦β
π¦ where this page comes from
- alpine 3.22: tdb-doc 1.4.12-r0 Β· LGPL-3.0-or-later
- alpine 3.23: tdb-doc 1.4.14-r0 Β· LGPL-3.0-or-later
- alpine 3.24: tdb-doc 1.4.15-r1 Β· LGPL-3.0-or-later
- arch rolling: tdb 1.4.15-2 Β· GPL-3.0-or-later
- centos-stream 10: tdb-tools 1.4.15-100.el10 Β· LGPL-3.0-or-later
- centos-stream 9: tdb-tools 1.4.15-1.el9 Β· LGPL-3.0-or-later
- fedora 43: tdb-tools 1.4.14-3.fc43 Β· LGPL-3.0-or-later
- fedora 44: tdb-tools 1.4.15-1.fc44 Β· LGPL-3.0-or-later
- nixos 26.05: tdb 1.4.15
- nixpkgs unstable: tdb 1.4.15
- opensuse-leap 16.0: tdb-tools 1.4.13-160000.2.2 Β· LGPL-3.0-or-later
- opensuse-leap 16.0: tdb-tools 1.4.13-160000.2.2 Β· LGPL-3.0-or-later
- opensuse-leap 16.0: tdb-tools 1.4.13-160000.2.2 Β· LGPL-3.0-or-later
- opensuse-leap 16.0: tdb-tools 1.4.13-160000.2.2 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms