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