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