kevinb
This article is probably worth a read for background info re backup & restore.
http://wiki.contribs.org/Backup_server_configYou could do something like these steps, which assume the following. You may need to vary the procedure if your situation is different.
The same users are setup on both servers
The domain controller does not have much/any data in ibays, but probably has mail in user folders.
The file server is in server only mode & does not have user data or mysql data.
The domain controller is in gateway mode.
The appropriateness of doing some of the following may depend on whether you have customisations done to the file server, as effectively the file server config will be overwritten.
1 Backup the domain controller, and backup the file server
2 On the file server create /temp folder (don't use /tmp as stuff gets auto deleted from that).
3 On the file server move all ibay data to /temp
4 On the file server move all user data to /temp
5 On the files server move all mysql data from /var/lib/mysql to /temp or dump all mysql data to /temp
6 On the file server move any other data locations or customisations in /opt or in /etc/e-smith/templates-custom and so on to /temp
7 On the file server note all settings in server manager (in case any need to be recreated)
8 On the file server note all settings in console "Configure this server" in case any need to be recreated)
9 On the file server in server manager delete all ibays and users & pseudonyms & domains etc etc.
10 On the file server remove any custom templates & do a signal-event post-upgrade followed by a reboot
11 The file server is now a fairly bog standard install of the OS without any configuration
12 Restore the backup of the domain controller to the file server. Obviously this will overwrite configuration on the file server. All user accounts and machine accounts, mysql data, user data etc will now be "restored" to the file server, which when rebooted will function like the domain controller did.
13 On the newly restored file server/now domain controller, recreate all required ibays in server manager.
14 Move all ibay data in /temp to the corresponding ibays.
15 You may need to also manually import any mysql data from the old file server, and user data too if there was any.
Make sure you do not inadvertantly change permissions and ownership when moving files around, preferably use tar and untar as mentioned in the Howto.