WINS on a Samba Server - Backup of the WINS database.

Luke Kenneth Casson Leighton lkcl at
Fri Apr 16 17:55:43 GMT 1999

On Sat, 17 Apr 1999, Dominic Baines wrote:

> OK so Samba WINS does not support MS-WINS replication.
> But.......
> <turn on novice mode>
> This may be a really simple one but how do you backup
> the WINS database on a 'RUNNING' Samba Server in case of failure ?
> </novice mode off>

cp /usr/local/samba/lib/private/wins.dat wins.dat.backup.

until som1 creates an ldap or mysql version, that is :)

if you want to restore, you have to terminate nmbd briefly, copy file over
and restart nmbd.  if nmbd has been written properly, it should notice
that the expiry time has elapsed on rather a lot of the entries, and so
marks them as expired.  it will also, if som1 attempts to register a name
that is marked as being owned by an older ip address, double-check with
the old ip b4 allocating the name to the new requester.

> In MS's NT you'd be able to set up replication partners etc... a failed
> WINS server would soon regenerate a list of NetBIOS to IP's from
> periodic
> announcements 

15 mins.

More information about the samba-ntdom mailing list