Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Samba] Restore tdbbackup files?

182 views
Skip to first unread message

Alberto Moreno

unread,
Jun 6, 2012, 3:10:02 AM6/6/12
to
Hi

Samba 3.5.10 centos 5.x.

I can backup with tdbbackup, read samba doc but haven't found how to
restore them?

Any info will appreciated, thanks!!!

--
LIving the dream...
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba

Andrew Bartlett

unread,
Jun 13, 2012, 1:40:01 AM6/13/12
to
On Wed, 2012-06-06 at 00:06 -0700, Alberto Moreno wrote:
> Hi
>
> Samba 3.5.10 centos 5.x.
>
> I can backup with tdbbackup, read samba doc but haven't found how to
> restore them?

Files created by tdbbackup are full, normal TDB files. tdbbackup just
does the extraction safely. (you must never just cp a running
database).

Andrew Bartlett

--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org

Moray Henderson

unread,
Jun 14, 2012, 5:00:01 AM6/14/12
to
> -----Original Message-----
> From: Andrew Bartlett [mailto:abar...@samba.org]
> Sent: 13 June 2012 06:35
>
> On Wed, 2012-06-06 at 00:06 -0700, Alberto Moreno wrote:
> > Hi
> >
> > Samba 3.5.10 centos 5.x.
> >
> > I can backup with tdbbackup, read samba doc but haven't found how to
> > restore them?
>
> Files created by tdbbackup are full, normal TDB files. tdbbackup just
> does the extraction safely. (you must never just cp a running
> database).

Remember one of the tdb files is actually a .ldb file:

/var/lib/samba/group_mapping.ldb

That caught us out once again the other week. Are you planning to do anything about that, by the way?


Moray.
“To err is human; to purr, feline.”

Amitay Isaacs

unread,
Jun 14, 2012, 9:40:01 PM6/14/12
to
On Wed, Jun 6, 2012 at 5:06 PM, Alberto Moreno <port...@gmail.com> wrote:
>  Hi
>
>  Samba 3.5.10 centos 5.x.
>
>  I can backup with tdbbackup, read samba doc but haven't found how to
> restore them?
>
>  Any info  will appreciated, thanks!!!

Use tdbrestore to restore tdb files.

tdbback dbname.tdb > dbname-backup
tdbrestore dbname.tdb < dbname-backup

Amitay.
0 new messages