Anoop C S a466eb
Downgrading Samba
Anoop C S a466eb
=================
Anoop C S a466eb
Anoop C S a466eb
Short version: data-preserving downgrades between Samba versions are not supported
Anoop C S a466eb
Anoop C S a466eb
Long version:
Anoop C S a466eb
With Samba development there are cases when on-disk database format evolves.
Anoop C S a466eb
In general, Samba Team attempts to maintain forward compatibility and
Anoop C S a466eb
automatically upgrade databases during runtime when requires.
Anoop C S a466eb
However, when downgrade is required Samba will not perform downgrade to
Anoop C S a466eb
existing databases. It may be impossible if new features that caused database
Anoop C S a466eb
upgrade are in use. Thus, one needs to consider a downgrade procedure before
Anoop C S a466eb
actually downgrading Samba setup.
Anoop C S a466eb
Anoop C S a466eb
Please always perform back up prior both upgrading and downgrading across major
Anoop C S a466eb
version changes. Restoring database files is easiest and simplest way to get to
Anoop C S a466eb
previously working setup.
Anoop C S a466eb
Anoop C S a466eb
Easiest way to downgrade is to remove all created databases and start from scratch.
Anoop C S a466eb
This means losing all authentication and domain relationship data, as well as
Anoop C S a466eb
user databases (in case of tdb storage), printers, registry settings, and winbindd
Anoop C S a466eb
caches.
Anoop C S a466eb
Anoop C S a466eb
Remove databases in following locations:
Anoop C S a466eb
/var/lib/samba/*.tdb
Anoop C S a466eb
/var/lib/samba/private/*.tdb
Anoop C S a466eb
Anoop C S a466eb
In particular, registry settings are known to prevent running downgraded versions
Anoop C S a466eb
(Samba 4 to Samba 3) as registry format has changed between Samba 3 and Samba 4.