[Samba] samba_backup script doesn't use tdbbackup for tdb files?

mail at crcomp.net mail at crcomp.net
Fri Dec 9 21:52:39 UTC 2016


The backup and restore Samba AD DC section of SambaWiki [1] refers to
./source4/scripting/bin/samba_backup . Although my recent version of 
samba_backup uses tdbbackup on ldb files, it appears to tar tdb files
"as is." [2]

What gives? Isn't tdbbackup specifically designed to backup tdb files? 
Is it now possible to simply copy open tdb files into an archive?


1. https://wiki.samba.org/index.php/Backup_and_restore_an_Samba_AD_DC

2. script snippet sans error handling

     if [ "$d" = "private" ]; then
       find $relativedirname -name "*.ldb.bak" -exec rm {} \;
         for ldb in `find $relativedirname -name "*.ldb"`; do
           tdbbackup $ldb
         tar cjf ${WHERE}/samba4_${n}.${WHEN}.tar.bz2  $relativedirname --exclude=*.ldb >/dev/null 2>&1

Thank you,

Don Kuenz KB7RPU

Genius is nothing but a greater aptitude for patience. - de Buffon

More information about the samba mailing list