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