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